hi,
...my problem is i want to deliver mail - headers+body -- only if
regex in a file match at least one body line. otherwise, deliver
mail to junk folder. i don't know how how to check the status code
of a pipe and still be able to have the complete message, not only
the body.
i had searched the archives, but i keep hitting upon variations of
these...
:0:
* B ?? <regex>
<action>
:0 fw:
| formail -I "" | egrep -f <file>
:0 fbw:
| egrep -f <file>
currently i have the following, which, of course, gives false
positives, but works as written...
:0
* ^TOminolta@(e|yahoo)groups?\.com
{
:0 w:
* ? /usr/bin/egrep -i -f ${HOME}/cf/mail/minolta-regex.list
folder
:0 E:
folder.junk
}
...this is a part of a bigger recipe which works fine.
any help will be much appreciated.
- parv
--
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail