Re: Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

Subject:Re: Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

Date:Mon, 30 Jan 2012 08:06:19 +0100

To:Gregor Zattler ,notmuch

Cc:

From:Pieter Praet


On Mon, 30 Jan 2012 00:42:14 +0100, Gregor Zattler <telegraph@gmx.net> wrote:
> Hi Pieter, notmuch developers
> * Pieter Praet <pieter@praet.org> [26. Jan. 2012]:
> > On Thu, 26 Jan 2012 13:44:50 +0100, Gregor Zattler <telegraph@gmx.net> wrote:
> >>    |> [2] grep -I "^Message-Id:" /tmp/thread-I-m-interested-in.mbox |sed -e "s/Message-Id: <//I" -e "s/>$//" >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"

Thread: