break;
if (i == OP_CATCHUP)
- mdata = mutt_newsgroup_catchup(Context, CurrentNewsSrv, ff->name);
+ mdata = mutt_newsgroup_catchup(Context->mailbox, CurrentNewsSrv, ff->name);
else
mdata = mutt_newsgroup_uncatchup(Context, CurrentNewsSrv, ff->name);
if (Context && Context->mailbox->magic == MUTT_NNTP)
{
struct NntpMboxData *mdata = Context->mailbox->mdata;
- if (mutt_newsgroup_catchup(Context, mdata->adata, mdata->group))
+ if (mutt_newsgroup_catchup(Context->mailbox, mdata->adata, mdata->group))
menu->redraw = REDRAW_INDEX | REDRAW_STATUS;
}
break;
if (rc == MUTT_ABORT)
return -1;
else if (rc == MUTT_YES)
- mutt_newsgroup_catchup(Context, mdata->adata, mdata->group);
+ mutt_newsgroup_catchup(Context->mailbox, mdata->adata, mdata->group);
}
}
#endif
/**
* mutt_newsgroup_catchup - Catchup newsgroup
- * @param ctx Mailbox
+ * @param m Mailbox
* @param adata NNTP server
* @param group Newsgroup
* @retval ptr NNTP data
* @retval NULL Error
*/
-struct NntpMboxData *mutt_newsgroup_catchup(struct Context *ctx,
+struct NntpMboxData *mutt_newsgroup_catchup(struct Mailbox *m,
struct NntpAccountData *adata, char *group)
{
struct NntpMboxData *mdata = NULL;
mdata->newsrc_ent[0].last = mdata->last_message;
}
mdata->unread = 0;
- struct Mailbox *m = ctx ? ctx->mailbox : NULL;
if (m && (m->mdata == mdata))
{
for (unsigned int i = 0; i < m->msg_count; i++)
struct NntpAccountData *nntp_select_server(struct Mailbox *m, char *server, bool leave_lock);
struct NntpMboxData *mutt_newsgroup_subscribe(struct NntpAccountData *adata, char *group);
struct NntpMboxData *mutt_newsgroup_unsubscribe(struct NntpAccountData *adata, char *group);
-struct NntpMboxData *mutt_newsgroup_catchup(struct Context *ctx, struct NntpAccountData *adata, char *group);
+struct NntpMboxData *mutt_newsgroup_catchup(struct Mailbox *m, struct NntpAccountData *adata, char *group);
struct NntpMboxData *mutt_newsgroup_uncatchup(struct Context *ctx, struct NntpAccountData *adata, char *group);
int nntp_active_fetch(struct NntpAccountData *adata, bool new);
int nntp_newsrc_update(struct NntpAccountData *adata);