update = true;
e->old = false;
if (upd_ctx)
- ctx->new ++;
+ ctx->mailbox->msg_new ++;
if (e->read)
{
e->read = false;
update = true;
if (!e->old)
if (upd_ctx)
- ctx->new --;
+ ctx->mailbox->msg_new --;
e->read = true;
if (upd_ctx)
ctx->mailbox->msg_unread--;
e->old = true;
if (!e->read)
if (upd_ctx)
- ctx->new --;
+ ctx->mailbox->msg_new --;
e->changed = true;
if (upd_ctx)
ctx->mailbox->changed = true;
e->old = false;
if (!e->read)
if (upd_ctx)
- ctx->new ++;
+ ctx->mailbox->msg_new ++;
e->changed = true;
if (upd_ctx)
ctx->mailbox->changed = true;
ctx->mailbox->msg_unread--;
if (!e->old)
if (upd_ctx)
- ctx->new --;
+ ctx->mailbox->msg_new --;
e->changed = true;
if (upd_ctx)
ctx->mailbox->changed = true;
ctx->mailbox->msg_unread++;
if (!e->old)
if (upd_ctx)
- ctx->new ++;
+ ctx->mailbox->msg_new ++;
e->changed = true;
if (upd_ctx)
ctx->mailbox->changed = true;
ctx->mailbox->msg_unread--;
if (!e->old)
if (upd_ctx)
- ctx->new --;
+ ctx->mailbox->msg_new --;
}
e->changed = true;
if (upd_ctx)
m->msg_count = 0;
m->msg_unread = 0;
m->msg_flagged = 0;
+ m->msg_new = 0;
}
rc = mailbox_maildir_check_dir(m, "new", check_new, check_stats);
int msg_count; /**< total number of messages */
int msg_unread; /**< number of unread messages */
int msg_flagged; /**< number of flagged messages */
+ int msg_new; /**< number of new messages */
struct Email **hdrs;
int hdrmax; /**< number of pointers in hdrs */
ctx->vsize = 0;
ctx->tagged = 0;
ctx->deleted = 0;
- ctx->new = 0;
+ ctx->mailbox->msg_new = 0;
ctx->mailbox->msg_unread = 0;
ctx->mailbox->msg_flagged = 0;
ctx->mailbox->changed = false;
ctx->vsize = 0;
ctx->tagged = 0;
ctx->deleted = 0;
- ctx->new = 0;
+ ctx->mailbox->msg_new = 0;
ctx->mailbox->msg_unread = 0;
ctx->mailbox->changed = false;
ctx->mailbox->msg_flagged = 0;
{
ctx->mailbox->msg_unread++;
if (!ctx->mailbox->hdrs[j]->old)
- ctx->new ++;
+ ctx->mailbox->msg_new ++;
}
j++;
{
ctx->mailbox->msg_unread++;
if (!e->old)
- ctx->new ++;
+ ctx->mailbox->msg_new ++;
}
}
}
ctx->mailbox->vcount = 0;
ctx->deleted = 0;
- ctx->new = 0;
+ ctx->mailbox->msg_new = 0;
ctx->mailbox->msg_unread = 0;
ctx->mailbox->msg_flagged = 0;
ctx->mailbox->changed = false;