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 B300E431E64
\r
6 for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:08:20 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 s7B5urS6Ikhu for <notmuch@notmuchmail.org>;
\r
16 Sun, 29 Jan 2012 23:08:20 -0800 (PST)
\r
17 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com
\r
18 [74.125.82.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 D8180431FBC
\r
21 for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:08:19 -0800 (PST)
\r
22 Received: by werb10 with SMTP id b10so3516779wer.26
\r
23 for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:08:18 -0800 (PST)
\r
24 Received: by 10.216.145.1 with SMTP id o1mr6805211wej.45.1327907298628;
\r
25 Sun, 29 Jan 2012 23:08:18 -0800 (PST)
\r
26 Received: from localhost ([109.131.39.11])
\r
27 by mx.google.com with ESMTPS id bu13sm49442708wib.6.2012.01.29.23.08.17
\r
28 (version=TLSv1/SSLv3 cipher=OTHER);
\r
29 Sun, 29 Jan 2012 23:08:18 -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: <20120129234213.GB11460@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> <87mx9avbc1.fsf@praet.org>
\r
39 <20120129234213.GB11460@shi.workgroup>
\r
40 User-Agent: Notmuch/0.11+132~ga81001f (http://notmuchmail.org) Emacs/23.3.1
\r
41 (x86_64-unknown-linux-gnu)
\r
42 Date: Mon, 30 Jan 2012 08:06:19 +0100
\r
43 Message-ID: <87zkd5655g.fsf@praet.org>
\r
45 Content-Type: text/plain; charset=us-ascii
\r
46 X-BeenThere: notmuch@notmuchmail.org
\r
47 X-Mailman-Version: 2.1.13
\r
49 List-Id: "Use and development of the notmuch mail system."
\r
50 <notmuch.notmuchmail.org>
\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
54 List-Post: <mailto:notmuch@notmuchmail.org>
\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
58 X-List-Received-Date: Mon, 30 Jan 2012 07:08:20 -0000
\r
60 On Mon, 30 Jan 2012 00:42:14 +0100, Gregor Zattler <telegraph@gmx.net> wrote:
\r
61 > Hi Pieter, notmuch developers
\r
62 > * Pieter Praet <pieter@praet.org> [26. Jan. 2012]:
\r
63 > > On Thu, 26 Jan 2012 13:44:50 +0100, Gregor Zattler <telegraph@gmx.net> wrote:
\r
64 > >> |> [2] grep -I "^Message-Id:" /tmp/thread-I-m-interested-in.mbox |sed -e "s/Message-Id: <//I" -e "s/>$//" >really.mid
\r
65 > >> |> grep -I -F really.mid rest.mbox
\r
66 > >> |> --> no match
\r
69 > > Did you mean to do case-insensitive grep? ('-i' instead of '-I').
\r
71 > Yes I did mean case-insensitive search and the `-I' is the result
\r
72 > of a misguided abbrev... Sorry about this.
\r
74 > > Also, the '-F' option expects input on stdin, not a filename.
\r
76 > No, this is -F instead of -f and means --fixed-strings.
\r
79 And as I said, `-F' requires input on stdin, like this:
\r
81 `grep -F "$(cat really.mid)" rest.mbox'
\r
83 Otherwise [1] you're grepping for the pattern 'really.mid' instead of
\r
84 for the patterns specified *in* 'really.mid', so naturally, you aren't
\r
85 getting any results.
\r
88 > > Try this (with all individual threads split into separate mboxes):
\r
91 > > for i in $(ls *.mbox) ; do
\r
92 > > grep -i '^Message-Id:' "${i}" | \
\r
93 > > sed -e 's/^.\{13\}//' -e 's/>$//' \
\r
96 > > for i in $(ls *.mids) ; do
\r
97 > > echo "## Grepping for ${i}'s Message-Ids"
\r
98 > > grep -i -F "$(cat ${i})" *.mbox
\r
102 > Thanks I did it "manual".
\r
104 > > Here's another couple of threads squashed into a single one:
\r
105 > > - [O] [Use Question] Capture and long lines
\r
106 > > - id:"BANLkTikoF4tXuNLLufRzNSD6k2ZYs7sUcg@mail.gmail.com"
\r
107 > > - [O] Worg update
\r
108 > > - id:"m1wrfiz3ch.fsf@tsdye.com"
\r
109 > > - [O] Table formula to convert hex to dec
\r
110 > > - id:"20110724080054.GB16388@x201"
\r
111 > > - [O] ICS import?
\r
112 > > - id:"20120125173421.GQ3747@x201"
\r
115 > > AFAICT, none of them share Message-Id's...
\r
117 > Do you consider this a bug?
\r
120 I do. No idea what causes it or how to fix it though... :)
\r
125 > -... --- .-. . -.. ..--.. ...-.-
\r
126 > _______________________________________________
\r
127 > notmuch mailing list
\r
128 > notmuch@notmuchmail.org
\r
129 > http://notmuchmail.org/mailman/listinfo/notmuch
\r
137 [1] id:"20120126124450.GB30209@shi.workgroup"
\r