X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=score.c;h=5d401dc531b77bdb813588c83d4d33127f7bf71c;hp=380283ed76cddc4e05c60387b506c637e2082d32;hb=4b1dc0d42a3165db9201ba40af9ad041f33333a5;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258 diff --git a/score.c b/score.c index 380283e..5d401dc 100644 --- a/score.c +++ b/score.c @@ -13,6 +13,7 @@ #include "mutt.h" #include "sort.h" +#include "buffer.h" #include "lib/mem.h" #include "lib/intl.h" @@ -109,7 +110,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) > 0) { + if (mutt_pattern_exec (tmp->pat, M_MATCH_FULL_ADDRESS, NULL, hdr) > 0) { if (tmp->exact || tmp->val == 9999 || tmp->val == -9999) { hdr->score = tmp->val; break;