You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

383769-score-match.patch 769B

12345678910111213141516171819202122232425
  1. From: Antonio Radici <antonio@debian.org>
  2. Date: Thu, 27 Feb 2014 17:14:35 +0100
  3. Subject: 383769-score-match
  4. Better matching for ~f, same as mutt-ng did.
  5. (see upstream http://bugs.mutt.org/2179)
  6. Gbp-Pq: Topic upstream
  7. ---
  8. score.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/score.c b/score.c
  11. index 6f952a5..7bc4d83 100644
  12. --- a/score.c
  13. +++ b/score.c
  14. @@ -133,7 +133,7 @@ void mutt_score_message (CONTEXT *ctx, HEADER *hdr, int upd_ctx)
  15. hdr->score = 0; /* in case of re-scoring */
  16. for (tmp = Score; tmp; tmp = tmp->next)
  17. {
  18. - if (mutt_pattern_exec (tmp->pat, 0, NULL, hdr) > 0)
  19. + if (mutt_pattern_exec (tmp->pat, M_MATCH_FULL_ADDRESS, NULL, hdr) > 0)
  20. {
  21. if (tmp->exact || tmp->val == 9999 || tmp->val == -9999)
  22. {