Package: mutt
Version: 1.5.13-1
Severity: wishlist
Tags: patch
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 <[EMAIL PROTECTED]>
The score pattern '~f Foo' will be checked against [EMAIL PROTECTED] 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.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Versions of packages mutt depends on:
ii exim [mail-transport-ag 3.36-18.1 An obsolete MTA (Mail Transport Ag
ii libc6 2.3.6-19 GNU C Library: Shared libraries
ii libdb4.4 4.4.20-7 Berkeley v4.4 Database Libraries [
ii libgnutls13 1.4.2-1 the GNU TLS library - runtime libr
ii libidn11 0.6.5-1 GNU libidn library, implementation
ii libncursesw5 5.5-2 Shared libraries for terminal hand
ii libsasl2 2.1.19.dfsg1-0.2 Authentication abstraction library
Versions of packages mutt recommends:
ii locales 2.3.6-19 GNU C Library: National Language (
ii mime-support 3.37-1 MIME files 'mime.types' & 'mailcap
-- debconf-show failed
--
Kornilios Kourtis
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]