On Wed, 1 Oct 1997 03:08:36 +0300 (EET DST),
Akis Karnouskos <akis(_at_)ceid(_dot_)upatras(_dot_)gr> wrote:
My procmail v3.10 doesnt understand the multiple rules I put ... or I
write something wrong ...
it only understands the FIRST of lines to be checked.
If this means what I think it means, you need to read the manual.
This is how Procmail works.
LOCKFILE=$HOME/.lockmail
Where does this come from? Do you know why it's here? If not, you
might want to remove it.
# FAX Replies
:0
* ^From:.*faxmaster@
* ^From:.*tpc@
FAX_MESSAGES
This means: If the headers of a message match the first condition, AND
they match the second condition, file it in FAX_MESSAGES.
If this is a regular file (not a directory), you need to lock it if
you remove the global LOCKFILE above.
For "or" instead of "and", this is how you'd do it:
:0: # note: added lock
* ^From:.*(faxmaster|tpc)@
FAX_MESSAGES
You might want to add a \< before the opening paren too, to avoid
partial matches (you never know when somebody will pop up and want to
call himself offtpc(_at_)aol(_dot_)com or whatever).
There are other ways to do a logical or, which you'll need to discover
e.g. when you want to match on messages not From: mother OR with
Subject: Dear Akis,
Hope this helps,
/* era */
--
Paparazzi of the Net: No matter what you do to protect your privacy,
they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>