diff src/lda/main.c @ 12585:b748c622e896

lib-storage: Added mailbox_get_last_*error() wrappers and use them.
author Timo Sirainen <tss@iki.fi>
date Thu, 20 Jan 2011 19:21:20 +0200
parents 89936539e3b8
children 02370eda76f8
line wrap: on
line diff
--- a/src/lda/main.c	Thu Jan 20 18:17:22 2011 +0200
+++ b/src/lda/main.c	Thu Jan 20 19:21:20 2011 +0200
@@ -387,7 +387,7 @@
 				    MAILBOX_FLAG_NO_INDEX_FILES);
 		if (mailbox_open_stream(box, input) < 0) {
 			i_fatal("Can't open delivery mail as raw: %s",
-				mail_storage_get_last_error(box->storage, &error));
+				mailbox_get_last_error(box, &error));
 		}
 		i_stream_unref(&input);
 	} else {
@@ -396,12 +396,12 @@
 				    MAILBOX_FLAG_NO_INDEX_FILES);
 		if (mailbox_open(box) < 0) {
 			i_fatal("Can't open delivery mail as raw: %s",
-				mail_storage_get_last_error(box->storage, &error));
+				mailbox_get_last_error(box, &error));
 		}
 	}
 	if (mailbox_sync(box, 0) < 0) {
 		i_fatal("Can't sync delivery mail: %s",
-			mail_storage_get_last_error(box->storage, &error));
+			mailbox_get_last_error(box, &error));
 	}
 	raw_box = (struct raw_mailbox *)box;
 	raw_box->envelope_sender = ctx.src_envelope_sender != NULL ?