Mail::Audit filter
Steve Rushe
steve-belfastpm at deeden.co.uk
Mon Apr 8 04:03:11 CDT 2002
On Fri, Apr 05, 2002 at 07:39:41PM +0100, Scott McWhirter wrote:
> hey all,
>
> was just having a think... any ideas on how to cut out the repition in
> my Mail::Audit filter??
>
> http://kungfuftr.com/code/mail-filter
Well for a quick change why not create a hash like
my %matches = (
'@geekalert.org' => 'geekalert.org',
'scott\@narnian.org' => 'narnian.org',
# etc...
);
Then just check the keys and accept to the maildir as appropriate.
I'd guess that Mail::ListDetector could help you too.
Out of interest, why not use SpamAssassin's builtin whitelist facility?
Steve
--
Steve Rushe - www.deeden.co.uk
I've given you so much rope you should have been hanging for days.
More information about the Belfast-pm
mailing list