}
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);
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 */