Re: [notmuch] [PATCH 1/2] lib/message: Add function to get maildir flags.

Subject: Re: [notmuch] [PATCH 1/2] lib/message: Add function to get maildir flags.

Date: Sat, 21 Nov 2009 16:28:30 -0800

To: Stefan Schmidt, notmuch@notmuchmail.org

Cc:

From: Keith Packard


On Sun, 22 Nov 2009 01:11:00 +0100, Stefan Schmidt <stefan@datenfreihafen.org> wrote:

> +const char *
> +notmuch_message_get_flags (notmuch_message_t *message)

This function should interpret the flags that it finds and return a
suitable set of notmuch tags. I'd suggest that 'unread' messages get
both 'unread' and 'inbox' tags, as Maildir doesn't distinguish between
'don't show this to be by default again please' and 'I've read this
message'. It seems best to hide the maildir-specific details inside the
library instead of exposing them.

Also, we have only the 'unread' tag; we don't have a 'read' tag, which
would simply be the inverse of 'unread'.

-- 
keith.packard@intel.com
part-000.sig (application/pgp-signature)

Thread: