Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 68 / e871523d11ba75b8e21fa8288ec2050a3b19da
1 Return-Path: <david@tethera.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id E33B16DE17BE\r
6  for <notmuch@notmuchmail.org>; Sun, 28 Feb 2016 07:46:34 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.035\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.035 tagged_above=-999 required=5\r
12  tests=[AWL=-0.024, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\r
13  autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id 9qjSNIVaiz6M for <notmuch@notmuchmail.org>;\r
17  Sun, 28 Feb 2016 07:46:32 -0800 (PST)\r
18 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id 39F056DE14D9\r
20  for <notmuch@notmuchmail.org>; Sun, 28 Feb 2016 07:46:31 -0800 (PST)\r
21 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
22  (envelope-from <david@tethera.net>)\r
23  id 1aa3Yr-0000bA-RY; Sun, 28 Feb 2016 10:47:09 -0500\r
24 Received: (nullmailer pid 5270 invoked by uid 1000);\r
25  Sun, 28 Feb 2016 15:46:28 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: Gaute Hope <eg@gaute.vetsj.com>, notmuch@notmuchmail.org\r
28 Subject: Re: need to call notmuch_threads_get (..) to actually move iterator\r
29 In-Reply-To: <1456315381-astroid-1-8aih8mdal8-11676@strange>\r
30 References: <1456315381-astroid-1-8aih8mdal8-11676@strange>\r
31 User-Agent: Notmuch/0.21+26~g9404723 (http://notmuchmail.org) Emacs/24.5.1\r
32  (x86_64-pc-linux-gnu)\r
33 Date: Sun, 28 Feb 2016 11:46:28 -0400\r
34 Message-ID: <87d1rg4z3f.fsf@zancas.localnet>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.20\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41  <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
43  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
48  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Sun, 28 Feb 2016 15:46:35 -0000\r
50 \r
51 Gaute Hope <eg@gaute.vetsj.com> writes:\r
52 \r
53 > Hi,\r
54 >\r
55 > it seems to be necessary to actually call notmuch_threads_get (threads)\r
56 > to move the thread iterator from a query object, just calling\r
57 > notmuch_threads_move_to_next (..) is not enough:\r
58 >\r
59 \r
60 I'm not sure of all the details, but it is true that the\r
61 notmuch_threads_get has side effects in the database. In particular it\r
62 allocates new thread-ids. So I can easily imagine things failing if you\r
63 leave out the call.\r
64 \r
65 d\r