mutt/2476: Handling of 'N' flag with Maildir store
>Number: 2476
>Notify-List: tait+muttpr@xxxxxxxxxxx
>Category: mutt
>Synopsis: Handling of 'N' flag with Maildir store
>Confidential: no
>Severity: normal
>Priority: medium
>Responsible: mutt-dev
>State: open
>Keywords:
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Sep 08 12:11:49 +0200 2006
>Originator: Tait
>Release: Mutt 1.4.1i
>Organization:
>Environment:
System: SunOS 5.10 (sun4u)
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL -USE_SETGID +USE_DOTLOCK -DL_STANDALONE
+USE_FCNTL -USE_FLOCK
+USE_POP +USE_IMAP -USE_GSS +USE_SSL -USE_SASL
+HAVE_REGCOMP -USE_GNU_REGEX
+HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET
+HAVE_CURS_SET +HAVE_META -HAVE_RESIZETERM
+HAVE_PGP -BUFFY_SIZE -EXACT_ADDRESS -SUN_ATTACHMENT
+ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET
+HAVE_LANGINFO_YESEXPR
+HAVE_ICONV +ICONV_NONTRANS +HAVE_GETSID +HAVE_GETADDRINFO
ISPELL="/usr/local/bin/ispell"
SENDMAIL="/usr/lib/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
>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.
>Add-To-Audit-Trail:
>Unformatted: