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