dovecot-2.2: lazy-expunge: If MAIL_FETCH_REFCOUNT fails, log the...

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 17 16:29:37 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/c71c4dceee97
changeset: 18946:c71c4dceee97
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 17 19:28:55 2015 +0300
description:
lazy-expunge: If MAIL_FETCH_REFCOUNT fails, log the storage error.

diffstat:

 src/plugins/lazy-expunge/lazy-expunge-plugin.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 6e89241d1995 -r c71c4dceee97 src/plugins/lazy-expunge/lazy-expunge-plugin.c
--- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c	Mon Aug 17 14:25:59 2015 +0300
+++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c	Mon Aug 17 19:28:55 2015 +0300
@@ -155,7 +155,8 @@
 
 	if (mail_get_special(_mail, MAIL_FETCH_REFCOUNT, &value) < 0) {
 		mail_storage_set_critical(_mail->box->storage,
-			"lazy_expunge: Couldn't lookup message's refcount");
+			"lazy_expunge: Couldn't lookup message's refcount: %s",
+			mailbox_get_last_error(_mail->box, NULL));
 		return -1;
 	}
 	if (*value == '\0') {


More information about the dovecot-cvs mailing list