Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Additional filtering suggestion.

by perldoc (Scribe)
on Jan 26, 2002 at 01:30 UTC ( [id://141663]=note: print w/replies, xml ) Need Help??


in reply to Additional filtering suggestion.
in thread 'rifle' - POP3 Mailbox SPAM/UCE Filter

Actually, there is a much simpler way to do this, and it does not require maintaining a list of other people's email addresses.

Match on the domains you do want, then negate the result. Like so:

{ hdr => [ 'To', 'Cc' ], regex => 'gerard\@(?!('. join('|', map( quotemeta, qw(mycompany.com oldname.com homedomain.com))). +'))', op => 'toss' },

This will throw out mails addressed to 'gerard' which are not from the specified domains.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://141663]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-26 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found