X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sort.c;h=505679cdcf73a4d33277b27c1a49cf553ed8e497;hp=dc1ab61fe04fb7ace7d636b2964bcdb9934d2da6;hb=455a2390989dfcfc90899785b0d8e9ac94ebd28e;hpb=a3279f2d891e671cdc7dde36a48572b5572058f2 diff --git a/sort.c b/sort.c index dc1ab61..505679c 100644 --- a/sort.c +++ b/sort.c @@ -15,6 +15,7 @@ #include "alias.h" #include "sort.h" #include "thread.h" +#include "score.h" #include "mutt_idna.h" #define SORTCODE(x) (Sort & SORT_REVERSE) ? -(x) : x @@ -267,7 +268,7 @@ void mutt_sort_headers (CONTEXT * ctx, int init) if (!ctx->quiet) mutt_message _("Sorting mailbox..."); - if (option (OPTNEEDRESCORE) && option (OPTSCORE)) { + if (option (OPTNEEDRESCORE) && mod_score.enable) { for (i = 0; i < ctx->msgcount; i++) mutt_score_message (ctx, ctx->hdrs[i], 1); }