"Timothy J. Luoma" <luomat(_at_)nerc3(_dot_)nerc(_dot_)com> writes:
:0c
* !^FROM_DAEMON
* !^X-Mailing-List:
* ^TO*luomat
{
:0
|(program)
}
The '*' in the "^TO" condition in your recipe should be removed: the
^TO token contains the necessary regexp, and sticking a kleene-star on
it just causes problems.
Also, I really don't see any reason for either the nesting block or the
parens in the command. Both cause an extra fork() that is a waste of
CPU. Now if you left some stuff out of your posting (bad bad!), then
maybe that besting block is useful, but the parens aren't.
BTW: since you say you have procmail 3.11, you should consider using
"^TO_" instead of "^TO". That makes the match a little more strict
in it's matching. Read the procmailrc(5) manpage for details.
...
However, I have not been able to succeed in addition the simple OR
condition for one particular list I am on 'next-ftp' (actually it is
next-ftp(_at_)peak(_dot_)org but it could be different things also, so I want
to match the 'next-ftp' part)
I want any messages address to *luomat or *next-ftp to run the program.
* ^TO*luomat|*next-ftp
didn't seem to work, nor did:
* ^TO*(luomat|next-ftp)
LOGFILE = some_file_that_you_will_look_in_if_something_does_not_work
VERBOSE = on
:0c
* !^FROM_DAEMON
* !^X-Mailing-List:
* ^TO_(luomat|next-ftp)
|program
Philip Guenther