On Sun, 10 Oct 1999 13:02:47 +0200, Rejo Zenger
<subs(_at_)sisterray(_dot_)xs4all(_dot_)nl> wrote:
:0
* ^Received [...]
it'll only check the first occurence of the 'Received' field. Or
does it check all of them?
All of them. A recipe line really means, "if any line [in the headers,
normally] matches the following regular expression ...". If you have
several conditions in the same recipe, you get an "AND" between each.
Easy to test, too:
$ cat <<HERE >scratch/sister.rc
SHELL=/bin/sh
:0
* ^Received:.*(something on the last Received: line, such as|NAA07636)
{ LOG="matched
" }
HERE
Piping your message (whose last Received: line contains NAA07636) to
this recipe yields:
$ procmail -m scratch/sister.rc <sister
matched
Hope this helps,
/* era */
--
Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition