Subject: Folder Locks

From: Pankaj Saxena <[email-masked]>
Date: Thu, 4 Jan 1996 16:53:43 -0600 (CST)

This question has been brought up earlier, but the answer didn't quite 
solve the problem I was having. I use Pine with Procmail to pre-process 
my mail. Everything seems to be working fine, but I was concerned by all 
the warnings in the Pine FAQ and procmail packages about implementing 
some kind of folder locking scheme to make sure the folders are not 
corrupted and mail is not lost.

I read the "Folder-Lock" section in the Pine FAQ and also the documents 
with procmail. There's a lot of information there - too much, in fact. I 
haven't been able to figure out what kind of folder-lock is required, and 
how to implement it.

Could someone who's using Pine with Procmail please tell me (in simple 
terms) what kind of folder-lock scheme they're using, how they set it up, 
and whether they've had any problems using it.

Thanks.

------------------------------------------------------------------------
Pankaj Saxena                                   [email-masked]
University of Illinois at Chicago               [email-masked]
Chicago, IL, USA                                [email-masked]
------------------------------------------------------------------------

---

From: Andrej Borsenkow <[email-masked]>
Date: Fri, 5 Jan 1996 13:18:47 +0300 (EET)

> and whether they've had any problems using it.

Hi!

i am using Pine with procmail for some time and have no troubles (as yet :-)
I haven't done any special configuration. Basically, get and compile 
procmail - I have done it off the shelf without ANY changes; get and 
compile Pine - see above. Then set up .procmailrc to your taste.
I am using curently Procmail 3.11pre4 and Pine for Windows 3.91 with 
IMAP server from Pine 3.91 also. With procmail 3.10 no problem also.

The only point is, don't forget to indicate folder locking in 
.procmailrc, that is, put second colon after the recipe flags, e.g.

:0:
* ...

It makes procmail to lock folder while delivering.

As far as I understand, both procmail and Pine use dot-locking. They 
create temporary file with .lock suffix while holding folder open.

hope it helps

greetings

----------------------------------------------------
Andrej Borsenkow        E-Mail: [email-masked]
SNI ITS, Moscow         Phone:  +7 (095) 252 13 88
----------------------------------------------------