diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-10-16 08:26:05 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-10-16 08:26:05 +0000 |
commit | afee807bc84e4d2ebb2ea2014be8bb3167ce0bf7 (patch) | |
tree | 7464e455754b07dc2769011b867b2efbe5debbd7 /mx.c | |
parent | e9907698bd680d2cbabc2f0845197debd28f4f46 (diff) |
Scoring improvements.
Diffstat (limited to 'mx.c')
-rw-r--r-- | mx.c | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -1398,16 +1398,6 @@ void mx_update_context (CONTEXT *ctx) h->pgp = pgp_query (h->content); #endif /* _PGPPATH */ - if (h->flagged) - ctx->flagged++; - if (h->deleted) - ctx->deleted++; - if (!h->read) - { - ctx->unread++; - if (!h->old) - ctx->new++; - } if (!ctx->pattern) { ctx->v2r[ctx->vcount] = ctx->msgcount; @@ -1426,7 +1416,8 @@ void mx_update_context (CONTEXT *ctx) if (h2) { h2->superseded = 1; - mutt_score_message (h2); + if (option (OPTSCORE)) + mutt_score_message (ctx, h2, 1); } } @@ -1436,5 +1427,19 @@ void mx_update_context (CONTEXT *ctx) if (h->env->real_subj) hash_insert (ctx->subj_hash, h->env->real_subj, h, 1); - mutt_score_message (h); + if (option (OPTSCORE)) + mutt_score_message (ctx, h, 0); + + if (h->changed) + ctx->changed = 1; + if (h->flagged) + ctx->flagged++; + if (h->deleted) + ctx->deleted++; + if (!h->read) + { + ctx->unread++; + if (!h->old) + ctx->new++; + } } |