]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lazy-expunge: If MAIL_FETCH_REFCOUNT fails, log the storage error.
authorTimo Sirainen <tss@iki.fi>
Mon, 17 Aug 2015 16:28:55 +0000 (19:28 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 17 Aug 2015 16:28:55 +0000 (19:28 +0300)
src/plugins/lazy-expunge/lazy-expunge-plugin.c

index b5ab67d7276d75985928424ee939b072034c7c53..fbb872ddfa9c9efbc4add41b818e3ef412f02130 100644 (file)
@@ -155,7 +155,8 @@ static int lazy_expunge_mail_is_last_instace(struct mail *_mail)
 
        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') {