Displaying 1 result from an estimated 1 matches for "mail_index_is_delet".
Did you mean:
mail_index_is_deleted
2012 May 29
4
per-mailbox message limits
...ct mail_module_register mail_module_register = { 0 };
@@ -1620,22 +1621,28 @@
ctx->dest_mail = mail;
}
int mailbox_save_begin(struct mail_save_context **ctx, struct istream *input)
{
struct mailbox *box = (*ctx)->transaction->box;
+ struct mailbox_status status;
int ret;
if (mail_index_is_deleted(box->index)) {
mailbox_set_deleted(box);
return -1;
}
if (!(*ctx)->copying_via_save)
(*ctx)->saving = TRUE;
- if (box->v.save_begin == NULL) {
+ mailbox_get_status(box, STATUS_MESSAGES, &status);
+ if (status.messages >= MAX_MSGS_PER_MAILBOX) {
+ mail_storage_se...