Re: [notmuch] tag dir proposal [was: Re: Git as notmuch object store]
authorJames Westby <jw+debian@jameswestby.net>
Thu, 28 Jan 2010 06:22:00 +0000 (19:22 +1300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:03 +0000 (09:36 -0800)
2e/b22e9394c9d992e2d3c82729c4b89ed5f84c50 [new file with mode: 0644]

diff --git a/2e/b22e9394c9d992e2d3c82729c4b89ed5f84c50 b/2e/b22e9394c9d992e2d3c82729c4b89ed5f84c50
new file mode 100644 (file)
index 0000000..8ea9d32
--- /dev/null
@@ -0,0 +1,101 @@
+Return-Path: <james@jameswestby.net>\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 89B22431FC4\r
+       for <notmuch@notmuchmail.org>; Wed, 27 Jan 2010 22:22:10 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.621\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.621 tagged_above=-999 required=5 tests=[AWL=-0.001,\r
+       BAYES_50=0.001, RCVD_IN_SORBS_WEB=0.619, WEIRD_PORT=0.001]      autolearn=no\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 0F8ov80FxWfB for <notmuch@notmuchmail.org>;\r
+       Wed, 27 Jan 2010 22:22:09 -0800 (PST)\r
+Received: from jameswestby.net (jameswestby.net [89.145.97.141])\r
+       by olra.theworths.org (Postfix) with ESMTP id A5654431FBC\r
+       for <notmuch@notmuchmail.org>; Wed, 27 Jan 2010 22:22:09 -0800 (PST)\r
+Received: from [131.203.102.171] (helo=flash)\r
+       by jameswestby.net with esmtpa (Exim 4.69)\r
+       (envelope-from <james@jameswestby.net>)\r
+       id 1NaNlX-0002UO-Ng; Thu, 28 Jan 2010 06:22:08 +0000\r
+Received: by flash (Postfix, from userid 1000)\r
+       id 91451605C07; Thu, 28 Jan 2010 19:22:00 +1300 (NZDT)\r
+From: James Westby <jw+debian@jameswestby.net>\r
+To: martin f krafft <madduck@madduck.net>\r
+In-Reply-To: <20100128053421.GA13823@lapse.rw.madduck.net>\r
+References: <20100125162247.85F0F66FA8@aether.pioto.org>\r
+       <87tyu9dfhs.fsf@servo.finestructure.net> <1264523377-sup-6110@elise>\r
+       <87aaw0vlvp.fsf@servo.finestructure.net>\r
+       <20100128051252.GB12540@lapse.rw.madduck.net>\r
+       <87k4v2re61.fsf@jameswestby.net>\r
+       <20100128053421.GA13823@lapse.rw.madduck.net>\r
+Date: Thu, 28 Jan 2010 19:22:00 +1300\r
+Message-ID: <87iqamrbp3.fsf@jameswestby.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: notmuch <notmuch@notmuchmail.org>\r
+Subject: Re: [notmuch] tag dir proposal [was: Re: Git as notmuch object\r
+ store]\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: Thu, 28 Jan 2010 06:22:10 -0000\r
+\r
+On Thu, 28 Jan 2010 18:34:21 +1300, martin f krafft <madduck@madduck.net> wrote:\r
+> also sprach James Westby <jw+debian@jameswestby.net> [2010.01.28.1828 +1300]:\r
+> > Are you trying to use thread: such that it could be passed to\r
+> > notmuch show to see the conversation?\r
+> > \r
+> > That's not going to work so well if so.\r
+> \r
+> Why not? Works fine for me with the vim plugin...\r
+\r
+lib/message.cc:560\r
+\r
+static void                                                                   \r
+thread_id_generate (thread_id_t *thread_id)                                   \r
+{\r
+    static int seeded = 0;\r
+    FILE *dev_random;\r
+    uint32_t value;                                                           \r
+    char *s;\r
+    int i;\r
+                                                                              \r
+    if (! seeded) {\r
+    dev_random = fopen ("/dev/random", "r");                                  \r
+    if (dev_random == NULL) {\r
+        srand (time (NULL));                                                  \r
+    } else {\r
+        fread ((void *) &value, sizeof (value), 1, dev_random);               \r
+        srand (value);\r
+        fclose (dev_random); \r
+    }\r
+    seeded = 1;\r
+    }                                                                         \r
+    \r
+    s = thread_id->str;\r
+    for (i = 0; i < NOTMUCH_THREAD_ID_DIGITS; i += 8) {                       \r
+    value = rand ();\r
+    sprintf (s, "%08x", value);                                               \r
+    s += 8;                                                                   \r
+    }\r
+}\r
+\r
+so it works fine for you, however I have no idea which thread you are\r
+talking about.\r
+\r
+Thanks,\r
+\r
+James\r