Bernard Tyers writes:
>> hea all,
>> finally got procmail working....
> now i want to know can i declare multiple addresses to filter in one
> section...example:
>> :0 # security = address1 address2
> *sender:. *address1 at address1.com*
> *sender:. *address2 at address2.com*
> Security
This way, conditions are logically ANDed. You want logical ORing:
:0:
* Sender:.*(address1 at address1.com|addresss2 at address2.com)
mail.box
Check out the procmail(1), procmailrc(5), and procmailex(5) man pages,
procmail's regexp handling is slightly different from other progs.
> ps: what is a "lockfile" and is it necessary?
A lockfile "locks" the mailbox file against multiple concurrent access.
Imagine you'd have two processes trying to write the same file at the same
time ... havoc. See man lockfile(1).
So, alway make sure to use the traing colon in mailbox delivery recipes.
:0:
* condition
mail.box
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!