Re: procmail/examples

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gene Heskett wrote:
>>Got a specific problem you're trying to solve?
> 
> Yes, the syntax of ~/.procmailrc
> 
> I see all the examples, but there is not a real tut as to what a :
> character does when it is not the leading char on the line.  Many
> other such questions are similarly unanswered in the available man
> pages.
> 
> To use the above char as an example, what is the diff between
> :0
> and 
> :0:
> 
> as the indicator for a new recipe?

The latter uses a lockfile, which ensures that the mailbox won't be
written while the recipe is executing (at least not by procmail).

For mboxes, you want to use a lockfile, for maildirs you don't (well,
you could use them on maildirs, but they'll just slow things down a
bit).

These sections from procmailrc(1) may now be clearer:

   Recipes
       A line starting with ’:’ marks the beginning of a recipe.  It
       has the following format:

              :0 [flags] [ : [locallockfile] ]
              <zero or more conditions (one per line)>
              <exactly one action line>

[...]

   Local lockfile
       If  you put a second (trailing) ’:’ 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.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I expected times like this -- but never thought they'd be so bad, so
long, and so frequent.
    -- Demotivators (www.despair.com)

Attachment: pgpUWxyGrNg3a.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux