Re: [notmuch] [PATCH 1/2] lib/message: Add function to get maildir flags.
authorKeith Packard <keithp@keithp.com>
Sun, 22 Nov 2009 00:28:30 +0000 (16:28 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:38 +0000 (09:35 -0800)
1a/38ba023606b483d39a66388e56ae6f945af442 [new file with mode: 0644]

diff --git a/1a/38ba023606b483d39a66388e56ae6f945af442 b/1a/38ba023606b483d39a66388e56ae6f945af442
new file mode 100644 (file)
index 0000000..c3fd6e9
--- /dev/null
@@ -0,0 +1,84 @@
+Return-Path: <keithp@keithp.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5656D431FBC\r
+       for <notmuch@notmuchmail.org>; Sat, 21 Nov 2009 16:28:35 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Dam69vzNZiE1 for <notmuch@notmuchmail.org>;\r
+       Sat, 21 Nov 2009 16:28:34 -0800 (PST)\r
+Received: from keithp.com (home.keithp.com [63.227.221.253])\r
+       by olra.theworths.org (Postfix) with ESMTP id AA991431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 21 Nov 2009 16:28:34 -0800 (PST)\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id 18FC076012A;\r
+       Sat, 21 Nov 2009 16:28:34 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at keithp.com\r
+Received: from keithp.com ([127.0.0.1])\r
+       by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024)\r
+       with LMTP id tw1iDvWYNGRC; Sat, 21 Nov 2009 16:28:31 -0800 (PST)\r
+Received: by keithp.com (Postfix, from userid 1033)\r
+       id 60F3176012B; Sat, 21 Nov 2009 16:28:31 -0800 (PST)\r
+Received: from keithp.com (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id 5330D76012A;\r
+       Sat, 21 Nov 2009 16:28:31 -0800 (PST)\r
+From: Keith Packard <keithp@keithp.com>\r
+To: Stefan Schmidt <stefan@datenfreihafen.org>, notmuch@notmuchmail.org\r
+In-Reply-To: <1258848661-4660-1-git-send-email-stefan@datenfreihafen.org>\r
+References: <yes> <1258848661-4660-1-git-send-email-stefan@datenfreihafen.org>\r
+Date: Sat, 21 Nov 2009 16:28:30 -0800\r
+Message-ID: <yunvdh3pfm9.fsf@aiko.keithp.com>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+Subject: Re: [notmuch] [PATCH 1/2] lib/message: Add function to get maildir\r
+ flags.\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 22 Nov 2009 00:28:35 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Sun, 22 Nov 2009 01:11:00 +0100, Stefan Schmidt <stefan@datenfreihafen.o=\r
+rg> wrote:\r
+\r
+> +const char *\r
+> +notmuch_message_get_flags (notmuch_message_t *message)\r
+\r
+This function should interpret the flags that it finds and return a\r
+suitable set of notmuch tags. I'd suggest that 'unread' messages get\r
+both 'unread' and 'inbox' tags, as Maildir doesn't distinguish between\r
+'don't show this to be by default again please' and 'I've read this\r
+message'. It seems best to hide the maildir-specific details inside the\r
+library instead of exposing them.\r
+\r
+Also, we have only the 'unread' tag; we don't have a 'read' tag, which\r
+would simply be the inverse of 'unread'.\r
+\r
+=2D-=20\r
+keith.packard@intel.com\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iD8DBQFLCIWuQp8BWwlsTdMRAvcTAKDXHYc6MTuuZFMzHvZFs1omBbr9CACdEY/b\r
+jqyT/QmmgoA/GtIcs/DfLMY=\r
+=LVlh\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r