Re: [maildropl] conditionally bouncing a mail
Brought to you by:
mrsam
From: mouss <us...@fr...> - 2005-07-02 00:29:57
|
Payal Rathod wrote: > On Fri, Jul 01, 2005 at 12:55:08PM +0200, Tony Earnshaw wrote: > >>Yes, maildropfilter.html gives a lookup example under "if" and you may >>use it almost literally. > > > You mean this, > if ( /^To: *!.*/ && lookup( $MATCH2, "badto.dat" )) > { > exit > } > > >>>- Instead of dumping the message this way can I bounce it back to >>>sender? >> >>Yes. > > > How do I do that? > > >>maildroprc: >> >>if ( /^From: *!.*/ && lookup( $MATCH2, "/tmp2/badfrom.dat" )) > you may want to escape MATCH2. |