Hi Pieter, notmuch developers * Pieter Praet <pie...@praet.org> [26. Jan. 2012]: > On Thu, 26 Jan 2012 13:44:50 +0100, Gregor Zattler <telegr...@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. > 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:"banlktikof4txunllufrznsd6k2zys7s...@mail.gmail.com" > - [O] Worg update > - id:"m1wrfiz3ch....@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? Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.- _______________________________________________ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch