* Re: Re: Mutt 1.4-1 opens mbox read-only
2002-07-24 8:34 ` Jason Tishler
@ 2002-07-24 15:07 ` Jens Schuessler
2002-07-24 15:17 ` Dr. Volker Zell
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Jens Schuessler @ 2002-07-24 15:07 UTC (permalink / raw)
To: cygwin
* Jason Tishler <jason@tishler.net> [24-07-02 14:37]:
> Jens,
>
> On Mon, Jul 22, 2002 at 10:20:49PM +0200, Jens Schuessler wrote:
> > I've compiled Mutt now with --enable-dotlock=NO
>
> IMO, the above is a bad idea because you are defeating one of the
> standard ways to lock a file to prevent corruption if there are multiple
> writers (e.g., mutt and procmail).
>
> While installing Cygwin exim yesterday, I *may* have stumbled onto your
> problem. After changing the permissions of /var/spool/mail to meet the
> needs of exim, I started to get the read-only mbox problem myself. I
> determined that if mutt cannot dotlock an mbox then it will open it
> read-only. This can easily tested by using mutt_dotlock:
>
> $ mutt_dotlock -t /var/spool/mail/jt
> $ echo $?
> 5
>
> Please try running mutt_dotlock -t on your mbox. Does it indicate
> incorrect permissions?
Hi Jason,
i would if i could, but there isn't a mutt_dotlock.exe in my
installation or in the official package!? I got a manpage for it, but
no executable. Normally, it should be a part of the mutt-package, or
am i wrong?
Jens
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mutt 1.4-1 opens mbox read-only
2002-07-24 8:34 ` Jason Tishler
2002-07-24 15:07 ` Jens Schuessler
@ 2002-07-24 15:17 ` Dr. Volker Zell
2002-07-25 5:44 ` Gary R. Van Sickle
2002-07-26 20:08 ` Jens Schuessler
3 siblings, 0 replies; 10+ messages in thread
From: Dr. Volker Zell @ 2002-07-24 15:17 UTC (permalink / raw)
To: cygwin
>>>>> "Jason" == Jason Tishler <jason@tishler.net> writes:
Jason> Jens,
Jason> On Mon, Jul 22, 2002 at 10:20:49PM +0200, Jens Schuessler wrote:
>> I've compiled Mutt now with --enable-dotlock=NO
Jason> IMO, the above is a bad idea because you are defeating one of the
Jason> standard ways to lock a file to prevent corruption if there are multiple
Jason> writers (e.g., mutt and procmail).
Jason> While installing Cygwin exim yesterday, I *may* have stumbled onto your
Jason> problem. After changing the permissions of /var/spool/mail to meet the
Jason> needs of exim, I started to get the read-only mbox problem myself. I
Jason> determined that if mutt cannot dotlock an mbox then it will open it
Jason> read-only. This can easily tested by using mutt_dotlock:
Jason> $ mutt_dotlock -t /var/spool/mail/jt
Jason> $ echo $?
Jason> 5
Jason> If you get a "5" (instead of "0"), then the permissions of
Jason> /var/spool/mail are not correct.
Jason> Please try running mutt_dotlock -t on your mbox. Does it indicate
Jason> incorrect permissions?
Where is mutt_dotlock ? There is only a usr/man/man1/mutt_dotlock.1 in
mutt-1.4-1.tar.bz2.
Jason> Jason
Ciao
Volker
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Mutt 1.4-1 opens mbox read-only
2002-07-24 8:34 ` Jason Tishler
2002-07-24 15:07 ` Jens Schuessler
2002-07-24 15:17 ` Dr. Volker Zell
@ 2002-07-25 5:44 ` Gary R. Van Sickle
2002-07-25 9:20 ` Jason Tishler
2002-07-26 20:08 ` Jens Schuessler
3 siblings, 1 reply; 10+ messages in thread
From: Gary R. Van Sickle @ 2002-07-25 5:44 UTC (permalink / raw)
To: cygwin
> Jens,
>
> On Mon, Jul 22, 2002 at 10:20:49PM +0200, Jens Schuessler wrote:
> > I've compiled Mutt now with --enable-dotlock=NO
>
> IMO, the above is a bad idea because you are defeating one of the
> standard ways to lock a file to prevent corruption if there are multiple
> writers (e.g., mutt and procmail).
>
> While installing Cygwin exim yesterday, I *may* have stumbled onto your
> problem. After changing the permissions of /var/spool/mail to meet the
> needs of exim, I started to get the read-only mbox problem myself.
What particular permissions were they?
> I
> determined that if mutt cannot dotlock an mbox then it will open it
> read-only. This can easily tested by using mutt_dotlock:
>
> $ mutt_dotlock -t /var/spool/mail/jt
> $ echo $?
> 5
>
> If you get a "5" (instead of "0"), then the permissions of
> /var/spool/mail are not correct.
>
> Please try running mutt_dotlock -t on your mbox. Does it indicate
> incorrect permissions?
mutt_dotlock isn't built as a separate executable in my distro, but rather the
functionality is compiled directly in. You have to configure with
"--enable-external-dotlock" to build it.
--
Gary R. Van Sickle
Brewer. Patriot.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mutt 1.4-1 opens mbox read-only
2002-07-25 5:44 ` Gary R. Van Sickle
@ 2002-07-25 9:20 ` Jason Tishler
0 siblings, 0 replies; 10+ messages in thread
From: Jason Tishler @ 2002-07-25 9:20 UTC (permalink / raw)
To: cygwin
Gary,
On Wed, Jul 24, 2002 at 10:29:55PM -0500, Gary R. Van Sickle wrote:
> > While installing Cygwin exim yesterday, I *may* have stumbled onto your
> > problem. After changing the permissions of /var/spool/mail to meet the
> > needs of exim, I started to get the read-only mbox problem myself.
>
> What particular permissions were they?
Until I installed exim, /var/spool/mail was owned and writable by me:
$ ls -dl /var/spool/mail
drwxr-xr-t 2 jt Domain U 4096 Jul 25 10:01 /var/spool/mail
After installing exim, I changed the ownership and permissions to:
$ chown exim:mail /var/spool/mail
$ ls -dl /var/spool/mail
drwxrwxr-t 2 exim mail 4096 Jul 25 10:01 /var/spool/mail
With the above permissions mutt could not dotlock files in
/var/spool/mail and opened my inbox read-only.
When I opened up permissions (i.e., added other writable):
$ chmod o+w /var/spool/mail
$ ls -dl /var/spool/mail
drwxrwxrwt 2 exim mail 4096 Jul 25 10:01 /var/spool/mail
mutt became "happy" and opened my inbox read/write.
Jason
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mutt 1.4-1 opens mbox read-only
2002-07-24 8:34 ` Jason Tishler
` (2 preceding siblings ...)
2002-07-25 5:44 ` Gary R. Van Sickle
@ 2002-07-26 20:08 ` Jens Schuessler
2002-07-30 17:50 ` Jason Tishler
3 siblings, 1 reply; 10+ messages in thread
From: Jens Schuessler @ 2002-07-26 20:08 UTC (permalink / raw)
To: cygwin
* Jason Tishler <jason@tishler.net> [24-07-02 14:37]:
> I started to get the read-only mbox problem myself. I
> determined that if mutt cannot dotlock an mbox then it will open it
> read-only. This can easily tested by using mutt_dotlock:
>
> $ mutt_dotlock -t /var/spool/mail/jt
> $ echo $?
> 5
>
> If you get a "5" (instead of "0"), then the permissions of
> /var/spool/mail are not correct.
>
> Please try running mutt_dotlock -t on your mbox. Does it indicate
> incorrect permissions?
After building the package again with --enable-external-dotlock, I get
the mutt_dotlock.exe and my mboxes are writeable, everythings fine.
All mboxes got a "0" on this test.
Jens
$ diff -u makemutt makemutt.new
--- makemutt 2002-07-27 02:44:28.000000000 +0200
+++ makemutt.new 2002-07-25 20:20:20.000000000 +0200
@@ -69,6 +69,7 @@
export MAILPATH=/var/spool/mail
OPTS="--with-mailpath=/var/spool/mail --with-regex --enable-pop
--enable-imap --enable-locales-fix --with-ssl \
+--enable-external-dotlock \
--enable-buffy-size \
--prefix=/usr \
--sysconfdir=/etc \
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Mutt 1.4-1 opens mbox read-only
2002-07-26 20:08 ` Jens Schuessler
@ 2002-07-30 17:50 ` Jason Tishler
2002-07-31 5:47 ` Gary R. Van Sickle
2002-07-31 11:10 ` Jens Schuessler
0 siblings, 2 replies; 10+ messages in thread
From: Jason Tishler @ 2002-07-30 17:50 UTC (permalink / raw)
To: cygwin
Jens,
On Sat, Jul 27, 2002 at 02:54:22AM +0200, Jens Schuessler wrote:
> * Jason Tishler <jason@tishler.net> [24-07-02 14:37]:
> > Please try running mutt_dotlock -t on your mbox. Does it indicate
> > incorrect permissions?
>
> After building the package again with --enable-external-dotlock, I get
> the mutt_dotlock.exe and my mboxes are writeable, everythings fine.
> All mboxes got a "0" on this test.
I'm glad the mutt is working for you now. However, it would be nice to
better understand why configuring without --enable-external-dotlock
causes this problem.
Jason
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Mutt 1.4-1 opens mbox read-only
2002-07-30 17:50 ` Jason Tishler
@ 2002-07-31 5:47 ` Gary R. Van Sickle
2002-07-31 11:10 ` Jens Schuessler
1 sibling, 0 replies; 10+ messages in thread
From: Gary R. Van Sickle @ 2002-07-31 5:47 UTC (permalink / raw)
To: cygwin
> Jens,
>
> On Sat, Jul 27, 2002 at 02:54:22AM +0200, Jens Schuessler wrote:
> > * Jason Tishler <jason@tishler.net> [24-07-02 14:37]:
> > > Please try running mutt_dotlock -t on your mbox. Does it indicate
> > > incorrect permissions?
> >
> > After building the package again with --enable-external-dotlock, I get
> > the mutt_dotlock.exe and my mboxes are writeable, everythings fine.
> > All mboxes got a "0" on this test.
>
> I'm glad the mutt is working for you now. However, it would be nice to
> better understand why configuring without --enable-external-dotlock
> causes this problem.
Hmmm. Well, in the interim, I think I'll just rebuild and reissue the package
with --enable-external-dotlock and call that good.
--
Gary R. Van Sickle
Brewer. Patriot.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: Mutt 1.4-1 opens mbox read-only
2002-07-30 17:50 ` Jason Tishler
2002-07-31 5:47 ` Gary R. Van Sickle
@ 2002-07-31 11:10 ` Jens Schuessler
1 sibling, 0 replies; 10+ messages in thread
From: Jens Schuessler @ 2002-07-31 11:10 UTC (permalink / raw)
To: cygwin
* Jason Tishler <jason@tishler.net> [30-07-02 21:50]:
> Jens,
>
> On Sat, Jul 27, 2002 at 02:54:22AM +0200, Jens Schuessler wrote:
> > * Jason Tishler <jason@tishler.net> [24-07-02 14:37]:
> > > Please try running mutt_dotlock -t on your mbox. Does it indicate
> > > incorrect permissions?
> >
> > After building the package again with --enable-external-dotlock, I get
> > the mutt_dotlock.exe and my mboxes are writeable, everythings fine.
> > All mboxes got a "0" on this test.
>
> I'm glad the mutt is working for you now. However, it would be nice to
> better understand why configuring without --enable-external-dotlock
> causes this problem.
I made the mutt_dotlock-test with the official package installed and
echo $? gave me an "0" on all mboxes though they weren't writable by
mutt?! So I dont' know what causes this problem with the internal
dotlock.
Jens
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 10+ messages in thread