Re: mutt/2149: exit command doesn't, if there's new mail
The following reply was made to PR mutt/2149; it has been noted by GNATS.
From: Zefram <zefram@xxxxxxxx>
To: Mutt Dev List <mutt-dev@xxxxxxxx>, bug-any@xxxxxxxxxxxxx
Cc:
Subject: Re: mutt/2149: exit command doesn't, if there's new mail
Date: Thu, 8 Dec 2005 22:00:21 +0000
Michael Tatge wrote:
>I guess a workaround would be to <sync-mailbox> first then quit.
Actually, since the failed quit does a sync, the trivial workaround is
to press "q" again (repeatedly if necessary). But the bug occurs with
any form of exit from the mailbox, if the mailbox needs to be modified.
I reported it with "q" just as a concrete case. The bug is rather
more annoying when changing mailbox: the mailbox name the user typed
is discarded.
If I could rebind "q" and "c" (are there any other mailbox-leaving
commands apart from "x"?) so that they do a sync before the main job,
that would usually avoid the problem. There's still a race condition
there, though.
-zefram