]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota-status: Allow mail to go over quota up to quota_grace.
authorTimo Sirainen <tss@iki.fi>
Thu, 19 Dec 2013 21:43:54 +0000 (23:43 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 19 Dec 2013 21:43:54 +0000 (23:43 +0200)
src/plugins/quota/quota-status.c
src/plugins/quota/quota.c

index d9724971f0ce854f282955678cfe8f68788bea95..bce000b8e7100a17fd168b41f4a90b345e00d2d4 100644 (file)
@@ -61,7 +61,7 @@ quota_check(struct mail_user *user, uoff_t mail_size,
        }
 
        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);
index 778433296a90b08243fe9bd639c2cbabf96018bc..79f398e61fe1949963da085a88742db739806eef 100644 (file)
@@ -1084,7 +1084,7 @@ static int quota_transaction_set_limits(struct quota_transaction_context *ctx)
 
        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 */