Re: search misses some targets

Subject: Re: search misses some targets

Date: Mon, 2 Oct 2017 21:33:49 +0200



From: Jean-Francois Moulin

On 09/29/2017 01:34 PM, David Bremner wrote:
> Jean-Francois Moulin <> writes:
>> Hi!
>> Sorry for not providing enough info to start with.
>> I have pasted a header below (slightly modified for privacy).
>> I wanted to find all mails coming from the sender of this one.
>> I used "search from:Doe" and search "from:doe" and got only 3/4 of the expected hits (I
>> checked with Thunderbird). I then tried "search Doe" and "search doe",
>> this message was not found either. Using mutt when I applied a "limit Doe" or "limit doe",
>> the message was found.
>> Thanks for having a look!
> I made an email message from these headers and was able to find it fine
> with all of the 'notmuch search' variations you mentioned. If you can
> duplicate the problem with a public message that you can send verbatim
> that might help.  The usual cause of such problems is exclude tags, but
> I see from your first message that you don't have any configured.
> Another potential source of difficulties is duplicate message-ids. You
> could test for the latter with
> notmuch search id:OF39AEF41D.39304F6A-ONC12580B2.005407CD-C12580B2.005AB287@LocalDomain


sorry for the delay.

notmuch search

returns nothing.

Looking for examples I could share, I searched for Spam Quarantaine
notifications **using notmuch-mutt**
    (The binding I use for the search in mutt is the following (copied
macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p
'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i
\"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head
-n 600 | perl -le '@a=<>;chomp@a;s/\^id://
for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a
notmuch pattern")

The notmuch search did not find any message!

This same macro executed with "Spam" as argument finds a few messages
containing the word spam but none having it in the from field

Repeating the searches with plain notmuch from the command line found
all of the messages!
So it is probable that my mutt configuration somehow has a problem. Once
this is fixed I'll search again for thoses cases where some messages are
found but not all of them.

Any tip appreciated of course but I guess this is probably no longer the
right place to ask!



Dr. Jean-François Moulin
German Engineering Materials Science Centre (GEMS)
at Heinz Maier-Leibnitz Zentrum (MLZ)
Helmholtz-Zentrum Geesthacht GmbH
Lichtenbergstr. 1, 85747 Garching bei München, Germany
phone: +49-89-289-10762; email:

signature.asc (application/pgp-signature)
notmuch mailing list