Rather than implementing an anti-spam filter yourself, have you looked at the fine selection of modules on CPAN?
Mail::Audit and Mail::SpamAssassin make an extremely flexible and easy to use mail filtering toolset.
Have a look at the various Mail:: modules for all your filtering needs.
Cheers.
BazB
If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.
In reply to Re: Email suffix matching with a negative look-ahead regexp
by BazB
in thread Email suffix matching with a negative look-ahead regexp
by jxz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |