if (!option (OPTSIDEBAR) || !mailbox)
return;
- mailbox->msgcount = 0;
+ mailbox->msg_count = 0;
mailbox->msg_unread = 0;
mailbox->msg_flagged = 0;
if (!(p = strstr (de->d_name, ":2,")) || !strchr (p + 3, 'T')) {
mailbox->new = 1;
- mailbox->msgcount++;
+ mailbox->msg_count++;
mailbox->msg_unread++;
}
}
continue;
if (!(p = strstr (de->d_name, ":2,")) || !strchr (p + 3, 'T')) {
- mailbox->msgcount++;
+ mailbox->msg_count++;
if ((p = strstr (de->d_name, ":2,"))) {
if (!strchr (p + 3, 'T')) {
if (!strchr (p + 3, 'S'))
if (!option (OPTSIDEBAR))
return;
- if ((mailbox->sb_last_checked > sb->st_mtime) && (mailbox->msgcount != 0))
+ if ((mailbox->sb_last_checked > sb->st_mtime) && (mailbox->msg_count != 0))
return; /* no check necessary */
ctx = mx_open_mailbox (mailbox->path, M_READONLY | M_QUIET | M_NOSORT | M_PEEK, NULL);
if (ctx) {
- mailbox->msgcount = ctx->msgcount;
+ mailbox->msg_count = ctx->msgcount;
mailbox->msg_unread = ctx->unread;
mailbox->msg_flagged = ctx->flagged;
mailbox->sb_last_checked = time (NULL);
#endif
short new; /* mailbox has new mail */
#ifdef USE_SIDEBAR
- int msgcount; /* total number of messages */
+ int msg_count; /* total number of messages */
int msg_unread; /* number of unread messages */
int msg_flagged; /* number of flagged messages */
#endif
#ifdef USE_SIDEBAR
/* Make the sidebar show the correct numbers */
if (status->messages) {
- inc->msgcount = status->messages;
+ inc->msg_count = status->messages;
inc->msg_unread = status->unseen;
}
#endif
if (mh_read_sequences (&mhs, mailbox->path) < 0)
return;
- mailbox->msgcount = 0;
+ mailbox->msg_count = 0;
mailbox->msg_unread = 0;
mailbox->msg_flagged = 0;
int i;
for (i = 0; i <= mhs.max; i++) {
- mailbox->msgcount++;
+ mailbox->msg_count++;
}
if (mhs_check (&mhs, i) & MH_SEQ_UNSEEN) {
mailbox->msg_unread++;
if (Context && Context->path &&
(!strcmp (b->path, Context->path)||
!strcmp (b->realpath, Context->path))) {
- b->msg_unread = Context->unread;
- b->msgcount = Context->msgcount;
+ b->msg_unread = Context->unread;
+ b->msg_count = Context->msgcount;
b->msg_flagged = Context->flagged;
}
}
char str[SHORT_STRING];
make_sidebar_entry (str, sizeof (str), SidebarWidth - delim_len,
- sidebar_folder_name, b->msgcount,
+ sidebar_folder_name, b->msg_count,
b->msg_unread, b->msg_flagged);
printw ("%s", str);
if (sidebar_folder_depth > 0)
if (!strcmp (b->path, ctx->path) ||
!strcmp (b->realpath, ctx->path)) {
b->msg_unread = ctx->unread;
- b->msgcount = ctx->msgcount;
+ b->msg_count = ctx->msgcount;
b->msg_flagged = ctx->flagged;
break;
}