Bug 354 - New header rule: whitespace in email address
Summary: New header rule: whitespace in email address
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Rules (show other bugs)
Version: 2.20
Hardware: Other other
: P3 minor
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-27 12:28 UTC by anirvan
Modified: 2002-07-29 01:42 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description anirvan 2002-05-27 12:28:47 UTC
I've seen lots of spam addressed to stuff like "Save Now@myisp.com" or 
"Joe Bob <Valued Customer@myisp.com>"

Something like the following might catch this.

    To =~ /(?:^[^<>@"]+\s[^<>@"]\@|<[^>]*\s[^>]*>)/

Please verify the regex. Thanks.
Comment 1 Justin Mason 2002-07-29 09:42:50 UTC
added TO_HAS_SPACES rule, good suggestion