in message <200203070931(_dot_)DAA17365(_at_)solen(_dot_)gac(_dot_)edu>,
wrote Philip Guenther thusly...
parv <parv_(_at_)yahoo(_dot_)com> writes:
...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.
...
but i keep hitting upon variations ofthese...
:0:
* B ?? <regex>
<action>
This tells procmail to try matching the regexp <regex> against the body.
Isn't that what you wanted? What happened when you tried this?
you seemed to miss that i wanted to use a file containing various
regular expressions. (external) egrep would look for a regex and
appropriate action would be taken based on the return code of the
external command.
i knew what the recipes did; i was trying to say that i had searched
the archives and didn't find anything suitable.
anyway, since the "egrep -f <file>" (see the original post) was
searching in both the headers & the body, i succumbed to using the "B"
option as attested by my other post "body search (B ?? ...) &
regex/scoring question".
- parv
--
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail