On Wed, Jun 06, 2001 at 08:20:30PM -0400, Homer Wilson Smith wrote:
> >   After looking into things here, I would recommend invoking the
> > procmail "lockfile" utility.  That way you are guaranteed you will use
> > the same mechanism as procmail at least.
> 
>       OK!  But is qpopper 'guaranteed' to use the same method of
> locking as procmail!

Yes.  It's also the same method of locking that any correctly built
mail client should be using.

However in server mode, as discussed, qpopper will only lock at the
beginning and end of the session, while first grabbing and later
updating the spool file.  It is therefore possible to get a valid lock
in the middle of the POP session, perform operations on the spool while
keeping it locked, write your updates back, unlock, and still end up
with a corrupted spool when qpopper terminates - if the operations you
performed were anything other than appending to the end of it.  That's
why server mode needs to be appropriately restricted.

  -- Clifton

-- 
 Clifton Royston  --  LavaNet Systems Architect --  [EMAIL PROTECTED]
   WWJD?   "JWRTFM!" - Scott Dorsey (kludge)   "JWG" - Eddie Aikau

Reply via email to