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.

Reply via email to