From: Kevin McCarthy Date: Wed, 22 Nov 2017 02:22:26 +0000 (-0800) Subject: Enable full address matching during message scoring. (closes #2179) (see #3243) X-Git-Tag: mutt-1-10-rel~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20f5519ee223b0d4e9e51bc686a4a61ec5c21896;p=mutt Enable full address matching during message scoring. (closes #2179) (see #3243) The tickets are old, but it seems reasonable to expect the pattern matching to behave the same in scoring as when applying limits or searching. I don't foresee a huge performance hit, and there are no arguments against the change in the tickets. Thanks to the muttng devs (noted in ticket 2179) and Kornilios Kourtis (from the Debian ticket referenced in ticket 3243). --- diff --git a/score.c b/score.c index f0716d2a..1ac5e741 100644 --- a/score.c +++ b/score.c @@ -136,7 +136,7 @@ void mutt_score_message (CONTEXT *ctx, HEADER *hdr, int upd_ctx) hdr->score = 0; /* in case of re-scoring */ for (tmp = Score; tmp; tmp = tmp->next) { - if (mutt_pattern_exec (tmp->pat, 0, NULL, hdr, &cache) > 0) + if (mutt_pattern_exec (tmp->pat, MUTT_MATCH_FULL_ADDRESS, NULL, hdr, &cache) > 0) { if (tmp->exact || tmp->val == 9999 || tmp->val == -9999) {