[Mutt] #3243: mutt: score address pattern does not match personal name
#3243: mutt: score address pattern does not match personal name
------------------------------+---------------------------------------------
Reporter: antonio@xxxxxxxx | Owner: mutt-dev
Type: enhancement | Status: new
Priority: trivial | Milestone:
Component: mutt | Version: 1.5.19
Keywords: |
------------------------------+---------------------------------------------
Forwarded from http://bugs.debian.org/383769
{{{
Hi,
Currently the score pattern matching for addresses matches only the
e-mail and not the name.
For example for a message with:
From: Foo Foobar <foo@xxxxxxxxxx>
The score pattern '~f Foo' will be checked against foo@xxxxxxxxxx and not
'Foo Foobar' and thus will not match.
In other cases (limit, search) both the e-mail and the name are checked.
This seems to fix the problem:
diff -u score.c.old score.c
--- score.c.old 2006-08-19 14:08:28.000000000 +0300
+++ score.c 2006-08-19 14:09:10.000000000 +0300
@@ -128,7 +128,7 @@
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)
{
Thanks.
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3243>
Mutt <http://www.mutt.org/>
The Mutt mail user agent