dovecot-2.1: imapc: If NOOP fails with disconnection, set "inter...
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/960907bfc29e
changeset: 13436:960907bfc29e
user: Timo Sirainen <tss at iki.fi>
date: Thu Sep 08 16:51:51 2011 +0300
description:
imapc: If NOOP fails with disconnection, set "internal error" to storage.
diffstat:
src/lib-storage/index/imapc/imapc-storage.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 283e08771d92 -r 960907bfc29e src/lib-storage/index/imapc/imapc-storage.c
--- a/src/lib-storage/index/imapc/imapc-storage.c Thu Sep 08 16:37:56 2011 +0300
+++ b/src/lib-storage/index/imapc/imapc-storage.c Thu Sep 08 16:51:51 2011 +0300
@@ -156,9 +156,11 @@
if (reply->state == IMAPC_COMMAND_STATE_OK)
;
- else if (reply->state == IMAPC_COMMAND_STATE_NO) {
+ else if (reply->state == IMAPC_COMMAND_STATE_NO)
imapc_copy_error_from_reply(storage, MAIL_ERROR_PARAMS, reply);
- } else if (reply->state != IMAPC_COMMAND_STATE_DISCONNECTED) {
+ else if (reply->state == IMAPC_COMMAND_STATE_DISCONNECTED)
+ mail_storage_set_internal_error(&storage->storage);
+ else {
mail_storage_set_critical(&storage->storage,
"imapc: NOOP failed: %s", reply->text_full);
}
More information about the dovecot-cvs
mailing list