dovecot-2.2: quota-status: Allow mail to go over quota up to quo...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Dec 19 23:44:10 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/be98fec32cd8
changeset: 17079:be98fec32cd8
user: Timo Sirainen <tss at iki.fi>
date: Thu Dec 19 23:43:54 2013 +0200
description:
quota-status: Allow mail to go over quota up to quota_grace.
diffstat:
src/plugins/quota/quota-status.c | 2 +-
src/plugins/quota/quota.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r eb830b4196c4 -r be98fec32cd8 src/plugins/quota/quota-status.c
--- a/src/plugins/quota/quota-status.c Thu Dec 19 23:09:45 2013 +0200
+++ b/src/plugins/quota/quota-status.c Thu Dec 19 23:43:54 2013 +0200
@@ -61,7 +61,7 @@
}
ns = mail_namespace_find_inbox(user->namespaces);
- box = mailbox_alloc(ns->list, "INBOX", 0);
+ box = mailbox_alloc(ns->list, "INBOX", MAILBOX_FLAG_POST_SESSION);
ctx = quota_transaction_begin(box);
ret = quota_test_alloc(ctx, I_MAX(1, mail_size), too_large_r);
diff -r eb830b4196c4 -r be98fec32cd8 src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c Thu Dec 19 23:09:45 2013 +0200
+++ b/src/plugins/quota/quota.c Thu Dec 19 23:43:54 2013 +0200
@@ -1084,7 +1084,7 @@
ctx->limits_set = TRUE;
mailbox_name = mailbox_get_vname(ctx->box);
- /* use last_mail_max_extra_bytes only for LDA/LMTP */
+ /* use quota_grace only for LDA/LMTP */
use_grace = (ctx->box->flags & MAILBOX_FLAG_POST_SESSION) != 0;
/* find the lowest quota limits from all roots and use them */
More information about the dovecot-cvs
mailing list