Re: notmuch-emacs should correctly handle signature status on reply
[notmuch-archives.git] / d6 / 87fdcea85120f42d63086cdf71818c10686489
1 Return-Path: <pieter@praet.org>\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 olra.theworths.org (Postfix) with ESMTP id A112D431FAF\r
6         for <notmuch@notmuchmail.org>; Thu, 26 Jan 2012 05:34:14 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id df-OsUhL7XNt for <notmuch@notmuchmail.org>;\r
16         Thu, 26 Jan 2012 05:34:12 -0800 (PST)\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
18         [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id BF8C7431FAE\r
21         for <notmuch@notmuchmail.org>; Thu, 26 Jan 2012 05:34:11 -0800 (PST)\r
22 Received: by wibhi8 with SMTP id hi8so425687wib.26\r
23         for <notmuch@notmuchmail.org>; Thu, 26 Jan 2012 05:34:10 -0800 (PST)\r
24 Received: by 10.180.104.4 with SMTP id ga4mr4196549wib.17.1327584850539;\r
25         Thu, 26 Jan 2012 05:34:10 -0800 (PST)\r
26 Received: from localhost ([109.131.116.159])\r
27         by mx.google.com with ESMTPS id m8sm12590599wia.11.2012.01.26.05.34.09\r
28         (version=TLSv1/SSLv3 cipher=OTHER);\r
29         Thu, 26 Jan 2012 05:34:10 -0800 (PST)\r
30 From: Pieter Praet <pieter@praet.org>\r
31 To: Gregor Zattler <telegraph@gmx.net>, notmuch <notmuch@notmuchmail.org>\r
32 Subject: Re: Bug?: notmuch-search-show-thread shows several threads;\r
33         only one containing matching messages\r
34 In-Reply-To: <20120126124450.GB30209@shi.workgroup>\r
35 References: <20120126004024.GA13704@shi.workgroup>\r
36         <20120126011903.GA1176@mit.edu>\r
37         <8762fzry7k.fsf@servo.finestructure.net>\r
38         <20120126124450.GB30209@shi.workgroup>\r
39 User-Agent: Notmuch/0.11+132~ga81001f (http://notmuchmail.org) Emacs/23.3.1\r
40         (x86_64-unknown-linux-gnu)\r
41 Date: Thu, 26 Jan 2012 14:32:14 +0100\r
42 Message-ID: <87mx9avbc1.fsf@praet.org>\r
43 MIME-Version: 1.0\r
44 Content-Type: text/plain; charset=us-ascii\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Thu, 26 Jan 2012 13:34:14 -0000\r
58 \r
59 On Thu, 26 Jan 2012 13:44:50 +0100, Gregor Zattler <telegraph@gmx.net> wrote:\r
60 > Hi Jamie, Austin,\r
61 > * Jameson Graef Rollins <jrollins@finestructure.net> [25. Jan. 2012]:\r
62 > > On Wed, 25 Jan 2012 20:19:03 -0500, Austin Clements <amdragon@MIT.EDU> wrote:\r
63 > >> One very common cause of this is someone using "reply" to get an\r
64 > >> initial set of recipients, but then replacing the entire message and\r
65 > >> subject (presumably without realizing that the mail is still tracking\r
66 > >> what it was a reply to).  This can also happen if someone\r
67 > >> intentionally replies to multiple messages (though few mail clients\r
68 > >> support this), or if there was a message ID collision.\r
69 > > \r
70 > > This is a very common occurrence for me as well.  I would put money down\r
71 > > that this is what you're seeing.\r
72\r
73 > I thought about this too and this is why I checked for any\r
74 > occurrence of Message-IDs in the other emails: \r
75\r
76 >    |> I isolated the thread I was interested in,\r
77 >    |> extracted the message ids of its messages and greped the rest of\r
78 >    |> the messages for this message ids: no matches.[2] Therefore no of\r
79 >    |> the rests messages are part of the thread I was interested in\r
80\r
81 > perhaps there was a logic error in how I did this:\r
82\r
83 >    |> [2] grep -I "^Message-Id:" /tmp/thread-I-m-interested-in.mbox |sed -e "s/Message-Id: <//I" -e "s/>$//" >really.mid\r
84 >    |>     grep -I -F really.mid rest.mbox\r
85 >    |>     --> no match\r
86\r
87 \r
88 Did you mean to do case-insensitive grep? ('-i' instead of '-I').\r
89 \r
90 Also, the '-F' option expects input on stdin, not a filename.\r
91 \r
92 \r
93 Try this (with all individual threads split into separate mboxes):\r
94 \r
95   #+begin_src sh\r
96     for i in $(ls *.mbox) ; do\r
97         grep -i '^Message-Id:' "${i}" | \\r
98             sed -e 's/^.\{13\}//' -e 's/>$//' \\r
99             > "${i}.mids"\r
100     done\r
101     for i in $(ls *.mids) ; do\r
102         echo "## Grepping for ${i}'s Message-Ids"\r
103         grep -i -F "$(cat ${i})" *.mbox\r
104     done\r
105   #+end_src\r
106 \r
107 \r
108 Here's another couple of threads squashed into a single one:\r
109 - [O] [Use Question] Capture and long lines\r
110   - id:"BANLkTikoF4tXuNLLufRzNSD6k2ZYs7sUcg@mail.gmail.com"\r
111 - [O] Worg update\r
112   - id:"m1wrfiz3ch.fsf@tsdye.com"\r
113 - [O] Table formula to convert hex to dec\r
114   - id:"20110724080054.GB16388@x201"\r
115 - [O] ICS import?\r
116   - id:"20120125173421.GQ3747@x201"\r
117 \r
118 \r
119 AFAICT, none of them share Message-Id's...\r
120 \r
121 \r
122 > /tmp/thread-I-m-interested-in.mbox  is a mbox with messages\r
123 > I'minterested in, the "real" ones.  really.mid is a list of\r
124 > Message-IDs of these "real" emails.  rest.mbox is a mbox with the\r
125 > other emails, Emacs showed in his notmuch show buffer but are\r
126 > other threads.\r
127\r
128 > Since there is no match I concluded, the threads are not linked.\r
129 > Perhaps I made a mistake.  I'l retest it and report again.  But\r
130 > right now I don't have the time to do this.\r
131\r
132 > Ciao, Gregor\r
133 > -- \r
134 >  -... --- .-. . -.. ..--.. ...-.-\r
135 > _______________________________________________\r
136 > notmuch mailing list\r
137 > notmuch@notmuchmail.org\r
138 > http://notmuchmail.org/mailman/listinfo/notmuch\r
139 \r
140 \r
141 Peace\r
142 \r
143 -- \r
144 Pieter\r