l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2010 Oct 21 14:17

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] procmail question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] procmail question

On 10/21/10 10:27 AM, Tony Cratz wrote:
>> I see some recipes that have the following on the first line.
>> :0:
> 	It should.
> 	The rule ':0:' is used to not to continue on to the next rule
> 	if there is a match on the test. So think of it as.

Actually, man 5 procmailrc states:

Local lockfile
        If you put a second (trailing) ':' [as in :0:] on the first
        recipe line, then procmail  will use a locallockfile (for this
        recipe only).  You can optionally specify the locallockfile to
        use; if you don't  however,  procmail will  use the destination
        filename (or the filename following the first '>>') and will
        append $LOCKEXT to it.

Thus, you should use :0: if you're delivering to a mailbox that cannot 
support concurrent deliveries by multiple processes (e.g. an mbox file). 
  You can use :0 if you're piping to an application, delivering to a 
Maildir, etc.

procmail stops processing your recipe file when it executes a delivering 
recipe where "delivering recipe" is defined as:

     Delivering recipes are those that cause header and/or body of the
     mail to  be:  written  into  a file, absorbed by a program or
     forwarded to a mailaddress.

You can cause a delivering recipe to considered non-delivering by using 
the 'c' (carbon copy) flag as in:

     :0 c

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.