* notmuch search does not work with search term 'id:'
@ 2017-08-11 9:31 Jörg Volbers
2017-08-11 10:09 ` Tomi Ollila
0 siblings, 1 reply; 5+ messages in thread
From: Jörg Volbers @ 2017-08-11 9:31 UTC (permalink / raw)
To: notmuch
[-- Attachment #1: Type: text/plain, Size: 414 bytes --]
Hello,
I have problems searching for a message by its id.
If I call notmuch-show, everything works fine; actually this is
used by the emacs frontend:
'notmuch show --format=raw id:<.....>'
If I try to search for this mail with notmuch-search, I get no
result:
notmuch search -- id:<....>
Any ideas?
Best,
Jörg
--
http://www.joergvolbers.de
https://fu-berlin.academia.edu/jvolbers
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: notmuch search does not work with search term 'id:'
2017-08-11 9:31 notmuch search does not work with search term 'id:' Jörg Volbers
@ 2017-08-11 10:09 ` Tomi Ollila
2017-08-11 10:23 ` Jörg Volbers
0 siblings, 1 reply; 5+ messages in thread
From: Tomi Ollila @ 2017-08-11 10:09 UTC (permalink / raw)
To: Jörg Volbers, notmuch
On Fri, Aug 11 2017, Jörg Volbers wrote:
> Hello,
>
> I have problems searching for a message by its id.
>
> If I call notmuch-show, everything works fine; actually this is
> used by the emacs frontend:
>
> 'notmuch show --format=raw id:<.....>'
>
> If I try to search for this mail with notmuch-search, I get no
> result:
>
> notmuch search -- id:<....>
>
> Any ideas?
put search terms inside single quotes. i.e. notmuch search -- 'id:<....>'
Tomi
>
> Best,
> Jörg
>
> --
> http://www.joergvolbers.de
> https://fu-berlin.academia.edu/jvolbers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: notmuch search does not work with search term 'id:'
2017-08-11 10:09 ` Tomi Ollila
@ 2017-08-11 10:23 ` Jörg Volbers
2017-08-11 19:57 ` David Bremner
0 siblings, 1 reply; 5+ messages in thread
From: Jörg Volbers @ 2017-08-11 10:23 UTC (permalink / raw)
To: Tomi Ollila, notmuch
[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]
Quoting the argument does not change anyting -- which makes sense,
since searching for the id does work well when using "notmuch show
--format=raw". So it's not a quoting issue.
BTW, the error also shows up if I just omit the option
"format=raw" in notmuch show.
This is the ID which I am using for testing:
E5-a1wt6bgr-elaine/2/42589-dc960dd3@nlsender05.ui-portal.com
Jörg
Tomi Ollila <tomi.ollila@iki.fi> writes:
> On Fri, Aug 11 2017, Jörg Volbers wrote:
>
>> Hello,
>>
>> I have problems searching for a message by its id.
>>
>> If I call notmuch-show, everything works fine; actually this is
>> used by the emacs frontend:
>>
>> 'notmuch show --format=raw id:<.....>'
>>
>> If I try to search for this mail with notmuch-search, I get no
>> result:
>>
>> notmuch search -- id:<....>
>>
>> Any ideas?
>
> put search terms inside single quotes. i.e. notmuch search --
> 'id:<....>'
>
> Tomi
>
>>
>> Best, Jörg
>>
>> -- http://www.joergvolbers.de
>> https://fu-berlin.academia.edu/jvolbers
--
http://www.joergvolbers.de
https://fu-berlin.academia.edu/jvolbers
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: notmuch search does not work with search term 'id:'
2017-08-11 10:23 ` Jörg Volbers
@ 2017-08-11 19:57 ` David Bremner
2017-08-12 16:35 ` Jörg Volbers
0 siblings, 1 reply; 5+ messages in thread
From: David Bremner @ 2017-08-11 19:57 UTC (permalink / raw)
To: Jörg Volbers, Tomi Ollila, notmuch
Jörg Volbers <joerg@joergvolbers.de> writes:
> This is the ID which I am using for testing:
>
> E5-a1wt6bgr-elaine/2/42589-dc960dd3@nlsender05.ui-portal.com
>
Can you try
NOTMUCH_DEBUG_QUERY=y notmuch search id:E5-a1wt6bgr-elaine/2/42589-dc960dd3@nlsender05.ui-portal.com
and report the output after "Final query is:"
d
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: notmuch search does not work with search term 'id:'
2017-08-11 19:57 ` David Bremner
@ 2017-08-12 16:35 ` Jörg Volbers
0 siblings, 0 replies; 5+ messages in thread
From: Jörg Volbers @ 2017-08-12 16:35 UTC (permalink / raw)
To: notmuch
[-- Attachment #1: Type: text/plain, Size: 940 bytes --]
That was helpful! The output is:
Query(((Tmail AND 0 *
QE5-a1wt6bgr-elaine/2/42589-dc960dd3@nlsender05.ui-portal.com)
AND_NOT (Kdeleted OR Kspam)))
Actually my config has "search.exclude_tags=deleted;spam" set, and
the mail IS a spam mail. (I wanted to train bogofilter).
Did not know that such an exclusion occurs. Makes sense, though.
Adding --exclude=false to the search makes it behave well.
Thanks for the help!
David Bremner <david@tethera.net> writes:
> Jörg Volbers <joerg@joergvolbers.de> writes:
>
>> This is the ID which I am using for testing:
>>
>> E5-a1wt6bgr-elaine/2/42589-dc960dd3@nlsender05.ui-portal.com
>>
> Can you try
>
> NOTMUCH_DEBUG_QUERY=y notmuch search
> id:E5-a1wt6bgr-elaine/2/42589-dc960dd3@nlsender05.ui-portal.com
>
> and report the output after "Final query is:"
>
> d
--
http://www.joergvolbers.de
https://fu-berlin.academia.edu/jvolbers
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-08-12 16:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-11 9:31 notmuch search does not work with search term 'id:' Jörg Volbers
2017-08-11 10:09 ` Tomi Ollila
2017-08-11 10:23 ` Jörg Volbers
2017-08-11 19:57 ` David Bremner
2017-08-12 16:35 ` Jörg Volbers
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).