dovecot-2.1: imapc: If mail prefetching fails because of disconn...

dovecot at dovecot.org dovecot at dovecot.org
Thu Sep 8 16:52:43 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/ec947cc9c9c7
changeset: 13437:ec947cc9c9c7
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 08 16:52:32 2011 +0300
description:
imapc: If mail prefetching fails because of disconnection, don't log about it again.

diffstat:

 src/lib-storage/index/imapc/imapc-mail-fetch.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 960907bfc29e -r ec947cc9c9c7 src/lib-storage/index/imapc/imapc-mail-fetch.c
--- a/src/lib-storage/index/imapc/imapc-mail-fetch.c	Thu Sep 08 16:51:51 2011 +0300
+++ b/src/lib-storage/index/imapc/imapc-mail-fetch.c	Thu Sep 08 16:52:32 2011 +0300
@@ -39,6 +39,9 @@
 	else if (reply->state == IMAPC_COMMAND_STATE_NO) {
 		imapc_copy_error_from_reply(mbox->storage, MAIL_ERROR_PARAMS,
 					    reply);
+	} else if (reply->state == IMAPC_COMMAND_STATE_DISCONNECTED) {
+		/* The disconnection message was already logged */
+		mail_storage_set_internal_error(&mbox->storage->storage);
 	} else {
 		mail_storage_set_critical(&mbox->storage->storage,
 			"imapc: Mail prefetch failed: %s", reply->text_full);


More information about the dovecot-cvs mailing list