#include <stdio.h>
#include "mutt/mutt.h"
#include "email/lib.h"
-#include "core/lib.h"
#include "browser.h"
-#include "context.h"
#include "format_flags.h"
-#include "globals.h"
#include "muttlib.h"
#include "nntp.h"
break;
case 'n':
- if (Context && (Context->mailbox->mdata == folder->ff->nd))
- {
- snprintf(fmt, sizeof(fmt), "%%%sd", prec);
- snprintf(buf, buflen, fmt, Context->mailbox->msg_new);
- }
- else if (C_MarkOld && (folder->ff->nd->last_cached >= folder->ff->nd->first_message) &&
+ if (C_MarkOld && (folder->ff->nd->last_cached >= folder->ff->nd->first_message) &&
(folder->ff->nd->last_cached <= folder->ff->nd->last_message))
{
snprintf(fmt, sizeof(fmt), "%%%sd", prec);
group_index_format_str, data, flags);
}
}
- else if (Context && (Context->mailbox->mdata == folder->ff->nd))
- {
- snprintf(fmt, sizeof(fmt), "%%%sd", prec);
- snprintf(buf, buflen, fmt, Context->mailbox->msg_unread);
- }
else
{
snprintf(fmt, sizeof(fmt), "%%%sd", prec);
#include "mutt.h"
#include "nntp.h"
#include "bcache.h"
-#include "context.h"
#include "curs_lib.h"
#include "globals.h"
#include "hcache/hcache.h"
update_active = true;
}
}
- /* select current newsgroup */
- if (Context && (Context->mailbox->magic == MUTT_NNTP))
- {
- buf[0] = '\0';
- if (nntp_query(Context->mailbox->mdata, buf, sizeof(buf)) < 0)
- return -1;
- }
}
else if (adata->newgroups_time)
return 0;
if (nntp_date(adata, &now) < 0)
return -1;
tmp_mdata.adata = adata;
- if (Context && (Context->mailbox->magic == MUTT_NNTP))
- tmp_mdata.group = ((struct NntpMboxData *) Context->mailbox->mdata)->group;
+ if (m && m->mdata)
+ tmp_mdata.group = ((struct NntpMboxData *) m->mdata)->group;
else
tmp_mdata.group = NULL;
i = adata->groups_num;