[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] procmail : about reading info from ASCII files



On Sat, Nov 08, 2003 at 10:02:18AM -0700, Scott Wiersdorf wrote:
> 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

Er, perhaps this might work better:

:0:
* ? egrep -i "${FROM}" $HOME/.blacklist
/var/tmp/dump


-- 
Scott Wiersdorf
scott@xxxxxxxxxxxx
======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
======================================================================


Main Index | Thread Index
Match: Format: Sort by:
Search: