dovecot-2.2: dsync: If saving mails fail, stop trying to save mo...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Apr 8 17:10:23 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/e0acf38f6199
changeset: 16254:e0acf38f6199
user: Timo Sirainen <tss at iki.fi>
date: Mon Apr 08 17:10:14 2013 +0300
description:
dsync: If saving mails fail, stop trying to save more of them and flooding logs.
diffstat:
src/doveadm/dsync/dsync-mailbox-import.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 1a58d4bcb49c -r e0acf38f6199 src/doveadm/dsync/dsync-mailbox-import.c
--- a/src/doveadm/dsync/dsync-mailbox-import.c Mon Apr 08 15:33:23 2013 +0300
+++ b/src/doveadm/dsync/dsync-mailbox-import.c Mon Apr 08 17:10:14 2013 +0300
@@ -1949,6 +1949,9 @@
i_assert(mail->input == NULL || mail->input->seekable);
i_assert(importer->new_uids_assigned);
+ if (importer->failed)
+ return;
+
all_newmails = *mail->guid != '\0' ?
hash_table_lookup(importer->import_guids, mail->guid) :
hash_table_lookup(importer->import_uids, POINTER_CAST(mail->uid));
More information about the dovecot-cvs
mailing list