You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2015/04/08 20:28:07 UTC

[Bug 7167] NAME_EMAIL_DIFF should not be case-sensitive

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7167

--- Comment #1 from Mark Martinec <Ma...@ijs.si> ---
> I suggest changing the subrule __NAME_EQ_EMAIL to be case-insensitive.


--- rulesrc/sandbox/khopesh/20_khop_experimental.cf~       2015-04-08
20:26:46.479635000 +0200
+++ rulesrc/sandbox/khopesh/20_khop_experimental.cf     2015-04-08
20:27:03.319635475 +0200
@@ -147,3 +147,3 @@
 header __NAME_IS_EMAIL From:raw =~ /\w\@[\w.-]+\.\w\w+["'`]*\s*<\w+\@\w/
-header __NAME_EQ_EMAIL From:raw =~ /([\w+.-]+\@[\w.-]+\.\w\w+)["'`\s]*<\s*\1>/
+header __NAME_EQ_EMAIL From:raw =~
/([\w+.-]+\@[\w.-]+\.\w\w+)["'`\s]*<\s*\1>/i
 meta    NAME_EMAIL_DIFF        __NAME_IS_EMAIL && ! __NAME_EQ_EMAIL


(and rules/72_active.cf)

-- 
You are receiving this mail because:
You are the assignee for the bug.