From: Gregor Zattler <telegraph@gmx.net>
To: notmuch <notmuch@notmuchmail.org>
Subject: [Emacs] Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages
Date: Thu, 26 Jan 2012 01:40:24 +0100 [thread overview]
Message-ID: <20120126004024.GA13704@shi.workgroup> (raw)
[sorry for the long and meandering explanation, I do not know how
to express the issue more concise]
Dear notmuch developers,
may someone please enlighten me regarding this behaviour:
I experienced a situation where the Emacs interface shows three
(3) different threads in one notmuch show buffer. I thought it
should show only one. Perhaps this is the result of notmuch show
showing messages which do not match the search pattern and do not
belong to one thread which contains messages which do so.[1]
What I did:
I remembered a thread on the Emacs-orgmode mailing list about
date ranges in various Emacs implementations/compilations and
searched for it with this search expression:
folder:orgmode date 64 bit 32
it resulted in a *notmuch-search-folder:orgmode date 64 bit 32*
buffer containing 5 lines with matching threads, one of it with 7
out of 99 matching messages and the subject "[O]: dates before
1970", I selected this one with RET (notmuch-search-show-thread)
and got a notmuch show mode buffer.
The buffer begins with this thread (which is the one I
remembered: ~20 messages) but contains 2 more totally different
threads ("[O] Slow movement in large buffers" and "[O] The
Org->ODT exporter is now in Org's core") with no matching
messages at all (at least all of the messages are
invisible/folded). The starting messages of these two additional
threads were shown with no indentation -- because they start a
thread.
I don't know for sure if the broad search pattern really does not
apply to at least some of the messages in the 2 additional
threads.[1] But even if: why are they part of the same
buffer resulting from notmuch-search-show-thread?
In order to further investigate this phenomenon I run notmuch from
the command line like:
notmuch show --entire-thread --format=mbox folder:orgmode date 64 bit 32 >/tmp/date64.mbox
and opened the resulting mbox with mutt. mutt showed the thread
I was interested in and several other threads which are not part
of this one. I isolated the thread I was interested in,
extracted the message ids of its messages and greped the rest of
the messages for this message ids: no matches.[2] Therefore no of
the rests messages are part of the thread I was interested in but
some of them were also part of the notmuch show buffer alongside
the one thread I was interested in.
My expectation was to only see one thread: the one with the
matching messages.
So this about the Emacs interface and perhaps about what a
notmuch search matches.
Can somebody please explain this to me? Since all relevant
messages are public I am able to provide the relevant messages as
one mbox file (2.9 MB).
Ciao, Gregor
--
[1] I don't know how to test if messages should show up in an
notmuch serch query with "date bit 64 32" being the serach
pattern. When I did a rgrep -l -I date
/tmp/unmatched.maildir|xargs egrep -l -I bit |xargs egrep -l
-I 64|xargs egrep -l -I 32 I got many hits but this is to be
expected since every e-mail has a "Date" header and enough
headers to match "64" and "32" and since its a mailing list
discussion software "bit" is also to be expected in these
e-mails.
[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
next reply other threads:[~2012-01-26 0:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 0:40 Gregor Zattler [this message]
2012-01-26 1:19 ` [Emacs] Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages Austin Clements
2012-01-26 2:31 ` Jameson Graef Rollins
2012-01-26 12:44 ` Gregor Zattler
2012-01-26 13:16 ` Jani Nikula
2012-01-29 23:36 ` Gregor Zattler
2012-01-26 13:32 ` Pieter Praet
2012-01-29 23:42 ` Gregor Zattler
2012-01-30 7:06 ` Pieter Praet
2012-01-30 19:04 ` Gregor Zattler
2012-01-30 21:27 ` Mark Walters
2012-01-30 22:34 ` Gregor Zattler
2012-01-31 1:18 ` Mark Walters
2012-01-31 16:31 ` Jameson Graef Rollins
2014-01-24 13:35 ` David Bremner
2014-01-26 21:26 ` Gregor Zattler
2014-01-26 23:43 ` David Bremner
2014-01-27 1:48 ` Gregor Zattler
2014-02-17 0:16 ` David Bremner
2014-01-27 17:07 ` Eric
2017-07-09 17:10 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120126004024.GA13704@shi.workgroup \
--to=telegraph@gmx.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).