changeset 18946:c71c4dceee97

lazy-expunge: If MAIL_FETCH_REFCOUNT fails, log the storage error.
author Timo Sirainen <tss@iki.fi>
date Mon, 17 Aug 2015 19:28:55 +0300
parents 6e89241d1995
children 41fabc9aa4c7
files src/plugins/lazy-expunge/lazy-expunge-plugin.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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') {