Re: [PATCH] NEWS: initial NEWS for 0.22.1
[notmuch-archives.git] / a7 / ff411bd355b5c86a89c781cb63e6aab1787777
1 Return-Path: <fatkasuvayu+linux@gmail.com>\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 66F7E6DE1006\r
6  for <notmuch@notmuchmail.org>; Sat, 12 Sep 2015 23:19:53 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.719\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.719 tagged_above=-999 required=5 tests=[AWL=0.101,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001,\r
13  RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,\r
14  SPF_PASS=-0.001] autolearn=disabled\r
15 Received: from arlo.cworth.org ([127.0.0.1])\r
16  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
17  with ESMTP id twZ9k2pGj9qN for <notmuch@notmuchmail.org>;\r
18  Sat, 12 Sep 2015 23:19:50 -0700 (PDT)\r
19 Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com\r
20  [209.85.212.173])\r
21  by arlo.cworth.org (Postfix) with ESMTPS id 428496DE0B27\r
22  for <notmuch@notmuchmail.org>; Sat, 12 Sep 2015 23:19:50 -0700 (PDT)\r
23 Received: by wicfx3 with SMTP id fx3so104145306wic.1\r
24  for <notmuch@notmuchmail.org>; Sat, 12 Sep 2015 23:19:48 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26  h=sender:date:from:to:subject:message-id:mail-followup-to:references\r
27  :mime-version:content-type:content-disposition:in-reply-to\r
28  :user-agent; bh=Botw2jsYgFMpclSJIBwvMl4QIVa25nxnFCsFOUCgPAM=;\r
29  b=KRwRDrkTP31vBcePv5DBNkxsnXM4kNNnMzgrxOwHdoVvIuLE0G5AAsfT9dFsIg0hrg\r
30  CPNpESViPldUqiK7scgjww1tC6KTD7YamerwBwQ/i1kaaGWQLsAZVP84J2AO6ITvD5Np\r
31  /KfGdcmshI+0JlKQVP+7SUIezg04NMfDdfhbeD7Mc+ZyNnov9XNhhAwrpIVomSwnIFyZ\r
32  ezer4zV4bB8K9BLVPeE8SMxz4coL1pA6UvYuDxnHvqbOp2xMEh3Utax+yZX4Y7VwE7XX\r
33  pi8ouHnumecuoGZ5wPoT9atnSnzfZph5ax/zJevF1ypTecRyMmHYc3U90kP/dwwBm7Qc\r
34  gpCA==\r
35 X-Received: by 10.194.93.198 with SMTP id cw6mr15447260wjb.113.1442125187928; \r
36  Sat, 12 Sep 2015 23:19:47 -0700 (PDT)\r
37 Received: from chitra.no-ip.org (5072840E.static.ziggozakelijk.nl.\r
38  [80.114.132.14])\r
39  by smtp.gmail.com with ESMTPSA id ex8sm7596489wib.14.2015.09.12.23.19.46\r
40  for <notmuch@notmuchmail.org>\r
41  (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
42  Sat, 12 Sep 2015 23:19:46 -0700 (PDT)\r
43 Sender: Suvayu Ali <fatkasuvayu@gmail.com>\r
44 Date: Sun, 13 Sep 2015 08:19:45 +0200\r
45 From: Suvayu Ali <fatkasuvayu+linux@gmail.com>\r
46 To: notmuch@notmuchmail.org\r
47 Subject: Re: Possible some threads are not complete due to bug?\r
48 Message-ID: <20150913061945.GD18353@chitra.no-ip.org>\r
49 Mail-Followup-To: notmuch@notmuchmail.org\r
50 References:\r
51  <CAJhTkNh7_hXDLsAGyD7nwkXV4ca6ymkLtFG945USvfqK4ZJEdQ@mail.gmail.com>\r
52 MIME-Version: 1.0\r
53 Content-Type: text/plain; charset=us-ascii\r
54 Content-Disposition: inline\r
55 In-Reply-To:\r
56  <CAJhTkNh7_hXDLsAGyD7nwkXV4ca6ymkLtFG945USvfqK4ZJEdQ@mail.gmail.com>\r
57 User-Agent: Mutt/1.5.23.1 (2014-03-12)\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.18\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62  <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
64  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
69  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Sun, 13 Sep 2015 06:19:53 -0000\r
71 \r
72 Hi,\r
73 \r
74 You should include a reference to the original message, not everyone\r
75 will remember the thread.\r
76 \r
77   id:20150614082258.GD17381@chitra.no-ip.org or\r
78   <http://mid.gmane.org/20150614082258.GD17381@chitra.no-ip.org>\r
79 \r
80 On Sun, Sep 13, 2015 at 12:03:20AM -0400, Xu Wang wrote:\r
81\r
82 > Sometimes I need to do:\r
83\r
84 > $ notmuch search --output=threads "id:MYMSGID"\r
85 > thread:000000000000a125\r
86 > $ notmuch search --output=messages "thread:000000000000a125"\r
87 \r
88 Looking at the script again, I see I assumed a message will belong to a\r
89 single thread.  You can remove that assumption by applying the following\r
90 change.\r
91 \r
92 -----8<--------------------8<-----\r
93 diff -u nm-ack nm-ack\r
94 --- nm-ack      2015-06-15 01:30:40.327556510 +0200\r
95 +++ nm-ack      2015-09-13 07:58:30.734096931 +0200\r
96 @@ -10,8 +10,9 @@\r
97  # debug\r
98  # set -o xtrace\r
99  \r
100 -declare query="$1" thread=$(notmuch search --output=threads -- "$1")\r
101 -declare -a msgs=$(notmuch search --output=messages -- "$thread") responses\r
102 +declare query="$1"\r
103 +declare -a thread=$(notmuch search --output=threads -- "$1")\r
104 +declare -a msgs=$(notmuch search --output=messages -- "${thread[@]}") responses\r
105  \r
106  function strip_mid() {\r
107      sed -e 's/ \+//g' -e 's/<\([^ <>]\+\)>/\1/g'\r
108 ----->8-------------------->8-----\r
109 \r
110 > In theory, this should output the message that responded to message ID\r
111 > "MYMSGID". Sometimes it works. But sometimes it does not work. That\r
112 > is, there exists an email where I am sure (I checked the raw email)\r
113 > that there is a header\r
114 > In-Reply-To: <MYMSGID>\r
115 > but that email does not show when I do the two commands above.\r
116 > Indeed, that mail belongs to a different thread ID.\r
117\r
118 > I am just curious if the above is due to:\r
119\r
120 > 1. My missing of understanding of how notmuch deals with threads\r
121 > 2. A bug or missing feature in notmuch causes some threads to be incomplete\r
122 \r
123 Interesting issue.  I can think of a case, say a message is cross-posted\r
124 to multiple lists, it might then give you more than one thread ids.  Is\r
125 this the case for your message?  If you are up for it, look in\r
126 lib/thread.cc.  I think the relevant methods are:\r
127 _resolve_thread_relationships and _notmuch_thread_create, but I could be\r
128 wrong.  I'm not familiar with the notmuch source.\r
129 \r
130 As I recall, you are using mutt-kz; does <entire-thread> work from\r
131 mutt-kz?  I would expect that to fail too.  It gets the thread id like\r
132 this:\r
133 \r
134   id = notmuch_message_get_thread_id(msg);\r
135 \r
136 Hope this helps,\r
137 \r
138 -- \r
139 Suvayu\r
140 \r
141 Open source is the future. It sets us free.\r