From: Timo Sirainen Date: Mon, 1 Aug 2016 19:18:08 +0000 (+0300) Subject: quota: Log an error if mail's size can't be read. X-Git-Tag: 2.3.0.rc1~3282 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13a2b020c7ae44b1433a6328f7c79cc3ad8306fe;p=thirdparty%2Fdovecot%2Fcore.git quota: Log an error if mail's size can't be read. We were still logging "Internal quota calculation error" but not necessarily any other reason. --- diff --git a/src/plugins/quota/quota.c b/src/plugins/quota/quota.c index 6e9d2924ba..d7b634f433 100644 --- a/src/plugins/quota/quota.c +++ b/src/plugins/quota/quota.c @@ -1094,8 +1094,12 @@ int quota_try_alloc(struct quota_transaction_context *ctx, uoff_t size; int ret; - if (mail_get_physical_size(mail, &size) < 0) + if (mail_get_physical_size(mail, &size) < 0) { + i_error("quota: Failed to get mail size (box=%s, uid=%u): %s", + mail->box->vname, mail->uid, + mailbox_get_last_error(mail->box, NULL)); return -1; + } ret = quota_test_alloc(ctx, size, too_large_r); if (ret <= 0)