This is as close as I've come to a condition that references a file
that becomes part of the regular expression.
KILLFILE=`cat $PMDIR/killfile`
:0iwr
* $^.*${KILLFILE}
{ on to more recipes }
This works. It is straight out of procmailex manpage. (Except that the
manpage says the file can have only one entry, but then the file below
_is_ only one entry, since it is a regular expression.) The drawback
is the files referenced have to look like this if you want a single
column list:
(first.entry|\
something|\
something.else|\
more.stuff|\
last.entry)
And LINEBUF limits file size to 2048, if I understand correctly. I'm
confused on whether this is the default, maximum, or both; and if it
applies to variables and conditions seperately, or the total of the
entire regexp, including all variables.
I'm actually using a more complex regexp, but trimmed it for this
illustration. You can have more than one variable in the regexp, which
lets you alternate regexps within the entire regexp. ;-) Fun, huh?!
David