"[Top Secret]" <web401a5(_at_)topsecret(_dot_)net> writes:
# familiarname
:0 * ^TO_user(_at_)thisdomain(_dot_)net ! users(_at_)realddress(_dot_)com
I use a little script (happens to be Perl but is almost limited to the sed
subset of Perl) to generate procmail recipes out of some file:
The files look like:
w3 -> emacs/w3
glimpse -> glimpse
and the perl script would look
perl -p \
-e 's[^([-a-zA-Z0-9.]+)$$][$$1 -> $$1];' \
-e 's[^(.+) -> (.+)$$][\n:0\n* ^(From|To|Subject|Cc):.*$$1\n{
FOLDER=softs/$$2 }\n];' \
$< >$@
(as you can tell it is actually part of a Makefile)
Then you only need to INCLUDERC the auto-generated file.
Stefan