procmail
[Top] [All Lists]

multiple action on delivered-main

2003-01-29 14:19:57
hi all,

i have the following recipies in the rc file.

$FROM = "some formail command for selecting "From: " field


:0fW
* ?(echo "$FROM" | $FGREP -i -f $HOME/.procmail/spam)
| /usr/bin/formail -I "Status: R"

:0:
* ?(echo "$FROM" | $FGREP -i -f $HOME/.procmail/spam)
spam

this works fine.

basically i want procmail to perform this funtion check if the from address is 
in the file "spam"
if it is, deliver it to the spam folder and mark it as read.

i cant seem to combine these rules into 1. the reason i want to do this is in 
the interest of
speed. incase my spam file grows really large i want to fgrep thru it as little 
times as possible.

please help

manoj




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>