[Bug 8340] DMARC avoidance

[email protected]
Newsgroups gmane.mail.spam.spamassassin.devel
Message-ID <[email protected]/SpamAssassin/>
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8340

--- Comment #9 from Giovanni Bechis <[email protected]> ---
Better with this:

Index: lib/Mail/SpamAssassin/Util.pm
===================================================================
--- lib/Mail/SpamAssassin/Util.pm       (revision 1927536)
+++ lib/Mail/SpamAssassin/Util.pm       (working copy)
@@ -2640,9 +2640,14 @@
     if (defined $2) {
       # Remove comments (no nested support here)
       $address =~ s/\((?:|(?:[^()\\]++|\\.)*+)\)//gs;
+      # Remove extra chars added after the domain
+      if($address =~ /(.*\@.*)[\x00-\x1F\x7F\s<>()[\]\\,;:\/"]/) {
+        $address = $1;
+      }
-       # Validate as somewhat email looking
-       if ($address !~ /^$header_address_mailre$/) {
-         $address = undef;
-       }
     }

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.