Re: [notmuch] [PATCH 1/2] lib/message: Add function to get maildir flags.
[notmuch-archives.git] / 7a / d164bcae7fd8958695ba06ac4a2ecc4d8b6024
diff --git a/7a/d164bcae7fd8958695ba06ac4a2ecc4d8b6024 b/7a/d164bcae7fd8958695ba06ac4a2ecc4d8b6024
new file mode 100644 (file)
index 0000000..1867695
--- /dev/null
@@ -0,0 +1,104 @@
+Return-Path: <stefan@datenfreihafen.org>\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 912FF431FBF\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Nov 2009 10:33:44 -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 9T+Abdbhab0i for <notmuch@notmuchmail.org>;\r
+       Sun, 22 Nov 2009 10:33:43 -0800 (PST)\r
+Received: from sirius.lasnet.de (sirius.lasnet.de [78.47.116.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 39D1C431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Nov 2009 10:33:43 -0800 (PST)\r
+Received: from p5b0353d3.dip.t-dialin.net ([91.3.83.211] helo=excalibur)\r
+       by sirius.lasnet.de with esmtpsa \r
+       (Cipher TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63 #1)\r
+       id 1NCHFh-0000dR-It by authid <stefan@sostec.de> with cram_md5;\r
+       Sun, 22 Nov 2009 19:33:40 +0100\r
+Received: from stefan by excalibur with local (Exim 4.69)\r
+       (envelope-from <stefan@excalibur.local>)\r
+       id 1NCHFi-0002ot-2C; Sun, 22 Nov 2009 19:33:38 +0100\r
+Date: Sun, 22 Nov 2009 19:33:38 +0100\r
+From: Stefan Schmidt <stefan@datenfreihafen.org>\r
+To: Keith Packard <keithp@keithp.com>\r
+Message-ID: <20091122183338.GB5735@excalibur.local>\r
+References: <yes> <1258848661-4660-1-git-send-email-stefan@datenfreihafen.org>\r
+       <yunvdh3pfm9.fsf@aiko.keithp.com>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc"\r
+Content-Disposition: inline\r
+In-Reply-To: <yunvdh3pfm9.fsf@aiko.keithp.com>\r
+X-Mailer: Mutt http://www.mutt.org/\r
+X-KeyID: 0xDDF51665\r
+X-Website: http://www.datenfreihafen.org/\r
+User-Agent: Mutt/1.5.20 (2009-06-14)\r
+Cc: notmuch@notmuchmail.org\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 18:33:44 -0000\r
+\r
+\r
+--C7zPtVaVf+AK4Oqc\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Hello.\r
+\r
+On Sat, 2009-11-21 at 16:28, Keith Packard wrote:\r
+> On Sun, 22 Nov 2009 01:11:00 +0100, Stefan Schmidt <stefan@datenfreihafen=\r
+=2Eorg> wrote:\r
+>=20\r
+> > +const char *\r
+> > +notmuch_message_get_flags (notmuch_message_t *message)\r
+>=20\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
+Thanks for the review. On a second thought the interface was really a bit u=\r
+gly.\r
+:)\r
+\r
+I'm just back to my box and going through the outstanding mails shows me th=\r
+at\r
+Michiel Buddingh has a more complete patch on the\r
+convert-maildir-flags-into-tags issue which Carl has tagged for review. Will\r
+wait what comes out of it and if anything is left for me to. :)\r
+\r
+regards\r
+Stefan Schmidt\r
+\r
+--C7zPtVaVf+AK4Oqc\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: Digital signature\r
+Content-Disposition: inline\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+Comment: http://www.datenfreihafen.org/contact.html\r
+\r
+iEYEARECAAYFAksJhAIACgkQbNSsvd31FmWDDgCgswbE3BE2XeExPzBBJf86efDw\r
+aFwAoMc3vaBmTjB2kG5ORUmk1E/ICBXK\r
+=k8v5\r
+-----END PGP SIGNATURE-----\r
+\r
+--C7zPtVaVf+AK4Oqc--\r