--- /dev/null
+Return-Path: <pieter@praet.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id B300E431E64\r
+ for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:08:20 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id s7B5urS6Ikhu for <notmuch@notmuchmail.org>;\r
+ Sun, 29 Jan 2012 23:08:20 -0800 (PST)\r
+Received: from mail-we0-f181.google.com (mail-we0-f181.google.com\r
+ [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id D8180431FBC\r
+ for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:08:19 -0800 (PST)\r
+Received: by werb10 with SMTP id b10so3516779wer.26\r
+ for <notmuch@notmuchmail.org>; Sun, 29 Jan 2012 23:08:18 -0800 (PST)\r
+Received: by 10.216.145.1 with SMTP id o1mr6805211wej.45.1327907298628;\r
+ Sun, 29 Jan 2012 23:08:18 -0800 (PST)\r
+Received: from localhost ([109.131.39.11])\r
+ by mx.google.com with ESMTPS id bu13sm49442708wib.6.2012.01.29.23.08.17\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Sun, 29 Jan 2012 23:08:18 -0800 (PST)\r
+From: Pieter Praet <pieter@praet.org>\r
+To: Gregor Zattler <telegraph@gmx.net>, notmuch <notmuch@notmuchmail.org>\r
+Subject: Re: Bug?: notmuch-search-show-thread shows several threads;\r
+ only one containing matching messages\r
+In-Reply-To: <20120129234213.GB11460@shi.workgroup>\r
+References: <20120126004024.GA13704@shi.workgroup>\r
+ <20120126011903.GA1176@mit.edu>\r
+ <8762fzry7k.fsf@servo.finestructure.net>\r
+ <20120126124450.GB30209@shi.workgroup> <87mx9avbc1.fsf@praet.org>\r
+ <20120129234213.GB11460@shi.workgroup>\r
+User-Agent: Notmuch/0.11+132~ga81001f (http://notmuchmail.org) Emacs/23.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+Date: Mon, 30 Jan 2012 08:06:19 +0100\r
+Message-ID: <87zkd5655g.fsf@praet.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 30 Jan 2012 07:08:20 -0000\r
+\r
+On Mon, 30 Jan 2012 00:42:14 +0100, Gregor Zattler <telegraph@gmx.net> wrote:\r
+> Hi Pieter, notmuch developers\r
+> * Pieter Praet <pieter@praet.org> [26. Jan. 2012]:\r
+> > On Thu, 26 Jan 2012 13:44:50 +0100, Gregor Zattler <telegraph@gmx.net> wrote:\r
+> >> |> [2] grep -I "^Message-Id:" /tmp/thread-I-m-interested-in.mbox |sed -e "s/Message-Id: <//I" -e "s/>$//" >really.mid\r
+> >> |> grep -I -F really.mid rest.mbox\r
+> >> |> --> no match\r
+> >> \r
+> > \r
+> > Did you mean to do case-insensitive grep? ('-i' instead of '-I').\r
+> \r
+> Yes I did mean case-insensitive search and the `-I' is the result\r
+> of a misguided abbrev... Sorry about this.\r
+> \r
+> > Also, the '-F' option expects input on stdin, not a filename.\r
+> \r
+> No, this is -F instead of -f and means --fixed-strings.\r
+> \r
+\r
+And as I said, `-F' requires input on stdin, like this:\r
+\r
+ `grep -F "$(cat really.mid)" rest.mbox'\r
+\r
+Otherwise [1] you're grepping for the pattern 'really.mid' instead of\r
+for the patterns specified *in* 'really.mid', so naturally, you aren't\r
+getting any results.\r
+\r
+\r
+> > Try this (with all individual threads split into separate mboxes):\r
+> > \r
+> > #+begin_src sh\r
+> > for i in $(ls *.mbox) ; do\r
+> > grep -i '^Message-Id:' "${i}" | \\r
+> > sed -e 's/^.\{13\}//' -e 's/>$//' \\r
+> > > "${i}.mids"\r
+> > done\r
+> > for i in $(ls *.mids) ; do\r
+> > echo "## Grepping for ${i}'s Message-Ids"\r
+> > grep -i -F "$(cat ${i})" *.mbox\r
+> > done\r
+> > #+end_src\r
+> \r
+> Thanks I did it "manual".\r
+> \r
+> > Here's another couple of threads squashed into a single one:\r
+> > - [O] [Use Question] Capture and long lines\r
+> > - id:"BANLkTikoF4tXuNLLufRzNSD6k2ZYs7sUcg@mail.gmail.com"\r
+> > - [O] Worg update\r
+> > - id:"m1wrfiz3ch.fsf@tsdye.com"\r
+> > - [O] Table formula to convert hex to dec\r
+> > - id:"20110724080054.GB16388@x201"\r
+> > - [O] ICS import?\r
+> > - id:"20120125173421.GQ3747@x201"\r
+> > \r
+> > \r
+> > AFAICT, none of them share Message-Id's...\r
+> \r
+> Do you consider this a bug?\r
+> \r
+\r
+I do. No idea what causes it or how to fix it though... :)\r
+\r
+\r
+> Ciao, Gregor\r
+> -- \r
+> -... --- .-. . -.. ..--.. ...-.-\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r
+\r
+\r
+Peace\r
+\r
+-- \r
+Pieter\r
+\r
+[1] id:"20120126124450.GB30209@shi.workgroup"\r