LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] procmail .procmailrc file

[ILUG] procmail .procmailrc file

Lars Hecking lhecking at nmrc.ucc.ie
Thu Nov 25 14:05:52 GMT 1999


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





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell