Re: [Mutt] #2476: Handling of 'N' flag with Maildir store
#2476: Handling of 'N' flag with Maildir store
Old description:
> {{{
> Mutt offers r and ! flags that seem to correspond to the Maildir R and F
> flags. Mutt also allows one to set or unset the N flag. Messages flagged
> N are moved to the mailfolder/new/ directory. If the message was
> additionally flagged r or !, the appropriate :2,FR (or whatever) Maildir
> flags are left appended to the filename when moved (back) into new/.
>
> It seems that filenames of messages in new/ are not allowed to contain a
> : (because the : info is allowed only in cur/ and tmp/). So Mutt seems to
> be violating the Maildir format by moving N-flagged messages into new/
> while preserving other flags.
> >How-To-Repeat:
> >Fix:
>
> It would seem that a more appropriate behavior would be to leave
> N-flagged messages in cur/ and instead remove the S Maildir flag when the
> user flags the message N.
>
> If one manually removes the S Maildir flag from a message filename, Mutt
> seems to recognize this and display the message as N.
>
> This solution seems to preserve flag information, preserve the meaning of
> the new/ directory, and not confuse servers and MUAs expecting files in
> new/ to not have :s.
> }}}
New description:
Mutt offers r and ! flags that seem to correspond to the Maildir R and F
flags. Mutt also allows one to set or unset the N flag. Messages flagged N
are moved to the mailfolder/new/ directory. If the message was
additionally flagged r or !, the appropriate :2,FR (or whatever) Maildir
flags are left appended to the filename when moved (back) into new/.
It seems that filenames of messages in new/ are not allowed to contain a :
(because the : info is allowed only in cur/ and tmp/). So Mutt seems to be
violating the Maildir format by moving N-flagged messages into new/ while
preserving other flags.
>Fix:
It would seem that a more appropriate behavior would be to leave N-flagged
messages in cur/ and instead remove the S Maildir flag when the user flags
the message N.
If one manually removes the S Maildir flag from a message filename, Mutt
seems to recognize this and display the message as N.
This solution seems to preserve flag information, preserve the meaning of
the new/ directory, and not confuse servers and MUAs expecting files in
new/ to not have :s.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/2476#comment:2>