[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vps-mail] procmail : about reading info from ASCII files
- Subject: Re: [vps-mail] procmail : about reading info from ASCII files
- From: Scott Wiersdorf <scott@xxxxxxxxxxxx>
- Date: Sat, 8 Nov 2003 10:02:18 -0700
On Sat, Nov 08, 2003 at 05:08:05PM +0100, anon wrote:
>
> * ^From:.*{lookup("/path/to/spammerlist.dat")}
>
Something like this might work:
## save the From: header
:0 h
{ FROM=|formail -xFrom: }
## look for this From: address in our blacklist
:0:
* egrep -i "${FROM}" $HOME/.blacklist
/var/tmp/dump
Scott
--
Scott Wiersdorf
scott@xxxxxxxxxxxx
======================================================================
This is <vps-mail@xxxxxxxxxxxx> <http://www.perlcode.org/lists/>
======================================================================
Main Index |
Thread Index