case 'N':
snprintf(fmt, sizeof(fmt), "%%%sc", prec);
- snprintf(buf, buflen, fmt, folder->ff->new ? 'N' : ' ');
+ snprintf(buf, buflen, fmt, folder->ff->has_new_mail ? 'N' : ' ');
break;
case 'n':
if (m)
{
(state->entry)[state->entrylen].has_mailbox = true;
- (state->entry)[state->entrylen].new = m->has_new;
+ (state->entry)[state->entrylen].has_new_mail = m->has_new;
(state->entry)[state->entrylen].msg_count = m->msg_count;
(state->entry)[state->entrylen].msg_unread = m->msg_unread;
}
for (unsigned int i = 0; i < adata->groups_num; i++)
{
struct NntpMboxData *mdata = adata->groups_list[i];
- if (mdata && (mdata->new || (mdata->subscribed && (mdata->unread || !C_ShowOnlyUnread))))
+ if (mdata && (mdata->has_new_mail ||
+ (mdata->subscribed && (mdata->unread || !C_ShowOnlyUnread))))
{
add_folder(menu, state, mdata->group, NULL, NULL, NULL, mdata);
}
char *name;
char *desc;
- bool new; /**< true if mailbox has "new mail" */
- int msg_count; /**< total number of messages */
- int msg_unread; /**< number of unread messages */
+ bool has_new_mail; /**< true if mailbox has "new mail" */
+ int msg_count; /**< total number of messages */
+ int msg_unread; /**< number of unread messages */
#ifdef USE_IMAP
char delim;
if (np)
{
(state->entry)[state->entrylen].has_mailbox = true;
- (state->entry)[state->entrylen].new = np->mailbox->has_new;
+ (state->entry)[state->entrylen].has_new_mail = np->mailbox->has_new;
(state->entry)[state->entrylen].msg_count = np->mailbox->msg_count;
(state->entry)[state->entrylen].msg_unread = np->mailbox->msg_unread;
}
if (folder->ff->nd->subscribed)
snprintf(buf, buflen, fmt, ' ');
else
- snprintf(buf, buflen, fmt, folder->ff->new ? 'N' : 'u');
+ snprintf(buf, buflen, fmt, folder->ff->has_new_mail ? 'N' : 'u');
break;
case 'n':
for (; i < adata->groups_num; i++)
{
struct NntpMboxData *mdata = adata->groups_list[i];
- mdata->new = true;
+ mdata->has_new_mail = true;
}
}
for (; i < adata->groups_num; i++)
{
struct NntpMboxData *mdata = adata->groups_list[i];
- mdata->new = true;
+ mdata->has_new_mail = true;
}
/* loading descriptions */
anum_t last_loaded;
anum_t last_cached;
anum_t unread;
- bool subscribed : 1;
- bool new : 1;
- bool allowed : 1;
- bool deleted : 1;
+ bool subscribed : 1;
+ bool has_new_mail : 1;
+ bool allowed : 1;
+ bool deleted : 1;
unsigned int newsrc_len;
struct NewsrcEntry *newsrc_ent;
struct NntpAccountData *adata;