case OP_ENTER_COMMAND:
mutt_enter_command();
- mutt_check_rescore(Context);
+ mutt_check_rescore(Context->mailbox);
break;
case OP_EDIT_OR_VIEW_RAW_MESSAGE:
/**
* mutt_check_rescore - Do the emails need to have their scores recalculated?
- * @param ctx Mailbox
+ * @param m Mailbox
*/
-void mutt_check_rescore(struct Context *ctx)
+void mutt_check_rescore(struct Mailbox *m)
{
if (OptNeedRescore && Score)
{
mutt_menu_set_redraw_full(MENU_MAIN);
mutt_menu_set_redraw_full(MENU_PAGER);
- for (int i = 0; ctx && i < ctx->mailbox->msg_count; i++)
+ for (int i = 0; m && i < m->msg_count; i++)
{
- mutt_score_message(ctx->mailbox, ctx->mailbox->hdrs[i], true);
- ctx->mailbox->hdrs[i]->pair = 0;
+ mutt_score_message(m, m->hdrs[i], true);
+ m->hdrs[i]->pair = 0;
}
}
OptNeedRescore = false;
#include <stdbool.h>
struct Buffer;
-struct Context;
struct Email;
struct Mailbox;
extern short ScoreThresholdFlag;
extern short ScoreThresholdRead;
-void mutt_check_rescore(struct Context *ctx);
+void mutt_check_rescore(struct Mailbox *m);
int mutt_parse_score(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
int mutt_parse_unscore(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
void mutt_score_message(struct Mailbox *m, struct Email *e, bool upd_ctx);