1 Mar 2002 01:54
egrep body & folder delivery recipe problem
parv <parv_ <at> yahoo.com>
2002-03-01 00:54:09 GMT
2002-03-01 00:54:09 GMT
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 <at> (e|yahoo)groups?\.com
{
:0 w:
* ? /usr/bin/egrep -i -f ${HOME}/cf/mail/minolta-regex.list
folder
(Continue reading)
RSS Feed