-- Nori Heikkinen <[EMAIL PROTECTED]> wrote
(on Wednesday, 09 October 2002, 08:47 PM -0400):
> i was helping a friend set up procmail the other day, and he asked
> about the final colon (local lockfile) on the recipes.  i told him i'd
> never used them (well, have on some recipes, haven't on others;
> haven't noticed a difference) and have never noticed a difference.
> the procmailrc(5) manpage "highly reccomends" use of lockfiles (do
> they mean local?)
No, they mean "lock".

> and says that things can wind up in a big mess if you don't.  but it's
> not very enlightening about what exactly is being locked ...  
The mail file is being locked while the operation is being done. (i.e.,
prevents writes to it; may prevent reading it as well) 

> anyone have any opinions / dogma to share on the use or omission of
> the second colon?
If you're using a Maildir format, they aren't necessary -- you only have
a single message per file, and the file itself is moved. However, if
you're using an mbox format, where there are many messages per file,
you'll want lockfiles to protect your data and prevent collisions (where
multiple operations are trying to make changes to the file
simultaneously).

-- 
Matthew Weier O'Phinney


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to