Re: [notmuch] [PATCH] Switch from random to sequential thread identifiers.
authorCarl Worth <cworth@cworth.org>
Tue, 9 Feb 2010 19:19:54 +0000 (11:19 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:08 +0000 (09:36 -0800)
49/a36e2539ebe6364a2add691f5a18fb6b6ddbbf [new file with mode: 0644]

diff --git a/49/a36e2539ebe6364a2add691f5a18fb6b6ddbbf b/49/a36e2539ebe6364a2add691f5a18fb6b6ddbbf
new file mode 100644 (file)
index 0000000..8d232e5
--- /dev/null
@@ -0,0 +1,87 @@
+Return-Path: <cworth@cworth.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 90C4E431FBC\r
+       for <notmuch@notmuchmail.org>; Tue,  9 Feb 2010 11:20:05 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.269\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.269 tagged_above=-999 required=5\r
+       tests=[ALL_TRUSTED=-1.8, AWL=0.271, BAYES_20=-0.74] autolearn=ham\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 gLeuOneumtZl; Tue,  9 Feb 2010 11:20:04 -0800 (PST)\r
+Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id D111F431FAE;\r
+       Tue,  9 Feb 2010 11:20:03 -0800 (PST)\r
+Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
+       id 61BB725416F; Tue,  9 Feb 2010 11:20:01 -0800 (PST)\r
+From: Carl Worth <cworth@cworth.org>\r
+To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch@notmuchmail.org\r
+In-Reply-To: <87r5oua2wv.fsf@steelpick.localdomain>\r
+References: <87mxzjpl9v.fsf@yoom.home.cworth.org>\r
+       <87eikvpfzl.fsf@yoom.home.cworth.org>\r
+       <87r5oua2wv.fsf@steelpick.localdomain>\r
+Date: Tue, 09 Feb 2010 11:19:54 -0800\r
+Message-ID: <87ljf2md2d.fsf@yoom.home.cworth.org>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+Subject: Re: [notmuch] [PATCH] Switch from random to sequential thread\r
+ identifiers.\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Tue, 09 Feb 2010 19:20:05 -0000\r
+\r
+--=-=-=\r
+\r
+On Tue, 09 Feb 2010 15:40:00 +0100, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
+> What about the following? This could also fix Sebastian's problem.\r
+...\r
+> +#define __STDC_FORMAT_MACROS\r
+> +#include <inttypes.h>\r
+...\r
+> -    sprintf (thread_id, "%016llx", notmuch->last_thread_id);\r
+> +    sprintf (thread_id, "%016"PRIx64, notmuch->last_thread_id);\r
+\r
+Excellent! I did hesitate for a moment when typing "llx" into the format\r
+string, but I had no idea what the correct thing to use was. I'm sure\r
+glad to have access to such a knowledgeable community where I can learn\r
+for the low cost of exposing my ignorance in public.\r
+\r
+I did verify the above in a copy of WG14/N1124. For anyone that doesn't\r
+recognize that, that's the draft from the C99 working group that I've\r
+been told is remarkably similar to C99 but distinct in that it's freely\r
+available[*]. I haven't verified the similarity, but I have found that\r
+document quite useful in cases like this one.\r
+\r
+Thanks for the fix. I'll likely push my change out now that I've added\r
+this fix.\r
+\r
+-Carl\r
+\r
+[*] http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1124.pdf\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iD8DBQFLcbVb6JDdNq8qSWgRAjwWAJ9XVMsC8QE+CQVFkVE3CgXz8SXe1wCeKGdV\r
+EIVX9Fqmmqwmb9IrFLocIYg=\r
+=+y68\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r