[Bug 8342] New: Detect invalid emails

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

            Bug ID: 8342
           Summary: Detect invalid emails
           Product: Spamassassin
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Plugins
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: Undefined

Invalid emails are detected at parsing stage but the result is not used on any
plugin.

To detect invalid emails we could add a sub (untested) like this to a plugin
(FromNameSpoof maybe ?)

my @addresses = Mail::SpamAssassin::Util::parse_header_addresses($in);
my $from_addr = ($pms->get('From:first:addr'))[0];

foreach my $addr ( @addresses ) {
  if($addr{address} eq $from_addr) {
    return 1 if($addr{phrase} eq 'invalid');
  }
}

-- 
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.