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