[PATCH] Have --format=mbox insert Status:

Michal Sojka sojkam1 at fel.cvut.cz
Mon Feb 7 01:04:41 PST 2011


On Sun, 06 Feb 2011, Peter John Hartman wrote:
> > Hi Peter,
> > 
> > would this output be compatible with all mbox consumers or only with
> > those who expect the Status: line? If the latter, we would probably want
> > a command line option to enable this.
> 
> Hi,
> 
> As far as I've been able to tell everyone respects RO in mbox, so I don't
> see this as a problem.  In any case, having the Status: line there won't 
> cause problems if an MUA doesn't recognize it.  That said, it would be nice
> to think of a place to allow the user to easily "map" notmuch tags to
> Status: or X-Status: rules, perhaps in the notmuch config file as follows:
> 
> [mbox]
> synchronize_flags=true

I would call this differently - perhaps 'export_flags'. In maildir
section of config file synchronize_flags has the meaning of
bi-directional synchronization and this is only uni-directional.

> xstatus_A=replied
> xstatus_F=flagged
> xstatus_T=draft
> #xstatus_D=deleted
> status_R=-unread
> status_O=unread

Is it necessary for this to be configurable? Given the list bellow, it
seems it is already defined by the "standard", so users would rarely
want different mapping.


> Reference: http://wiki.dovecot.org/MailboxFormat/mbox:
>   Status: R (\Seen) and O (non-\Recent) flags
>   X-Status: A (\Answered), F (\Flagged), T (\Draft) and D (\Deleted) flags
> 
> (I know that alpine/pine and mutt recognize at least RO, and probably AFTD.)

-Michal


More information about the notmuch mailing list