On Thu, Sep 02, 1999 at 12:30:20PM -0500, David DeSimone cogitated:
> Fairlight <[EMAIL PROTECTED]> wrote:
> >
> > Actually, you bring up a good point on file locking...I installed
> > under linux from tarball and compiled it --with-flock --without-fcntl
> > ...and I can run 2 mutt sessions on the same mailbox and have one
> > alter it, and then when you go back to the other, it says it's been
> > modified. Something seem incorrect about the locking there?
>
> You modified the folder in one Mutt, and the other Mutt noticed this,
> and told you about it. Why is that a problem?
>
> Locking only occurs when the folder is first opened, and when it is
> being written. Mutt does not leave the folder locked for the entire
> time that you were reading mail; that would prevent new mail from being
> delivered.
I guess I figured it would work somewhat differently...perhaps because of
the way elm (which I used for 10 years and just dropped for mutt) handled
at least your main spool folder, and would complain to you if
/tmp/mbox.fairlite was present and you tried firing up a new session, etc.
Your delivery example does show the flaw in my logic, especially keeping in
mind WHY elm used /tmp/mbox.fairlite :) And that was only on the main
spool. At least mutt is polite and just informs you of a change, and
doesn't bail on a "corrupt" mailbox. :) :)
For what it's worth, I did talk to someone else about this and they said if
you open, say:
1) mutt -f folders/blip
2) mutt -f folders/blip
3) mutt -f folders/blip
And if you make any changes, if you close 3 and then 2, and then 1, you're
fine, and notified appropriately, etc. But if you close 1 first, 2 and 3
will core dump. At least that was my understanding, and I haven't seen
this exhibition of behaviour personally. I thought I'd mention it while
we're on a similar topic.
I'm actually more worried about the double-message index display but I
caught the other day. :)
Thanks for straightening out the locking deal for me.
mark->
--
Fairlight-> ||| [EMAIL PROTECTED] | Fairlight Consulting
__/\__ ||| "I'm talking for free... | http://www.fairlite.com
<__<>__> ||| It's a New Religion..." | [EMAIL PROTECTED]
\/ ||| PGP Public Key available via finger @iglou, or Key servers