Search using email headers does not work

Subject: Search using email headers does not work

Date: Mon, 11 Feb 2013 15:52:59 +0100

To: notmuch@notmuchmail.org

Cc:

From: Michal Vyskocil


Hi,

I'd like to search for all emails with a defined email header. According
notmuch-search(1) [1] this should be a trivial. But I got a very limited
results

$ notmuch count --exclude=false "X-Mailinglist"
2

where simple
$ grep -R "^X-Mailinglist" .
./new/1360572283.M251897P7737Q200Ra1da4988633e0842.zelvantb:X-Mailinglist:
opensuse-factory
./new/1360315438.M35384P12994Q25807R1a5203f9da8b1b28.zelvantb:X-Mailinglist:
opensuse
./new/1360315441.M705450P13019Q25830R71a1deb928bb7cf3.zelvantb:X-Mailinglist:
opensuse
./new/1360315436.M459220P12984Q25797R13d6f3a1f39d2148.zelvantb:X-Mailinglist:
opensuse
./new/1360315381.M437845P12634Q25464R3bccd68f2b8fd54f.zelvantb:X-Mailinglist:
opensuse
./new/1360315556.M414918P13763Q26528R614e01d632d1c3d8.zelvantb:X-Mailinglist:
opensuse
^C

shows me, there are hundreds and hundreds of such emails in my local
maildir. I use very simple setup generated by notmuch-setup with a basic
set of inbox, undread signed and similar tags.

Can anyone point me on a correct query string for such search? I have
following versions of xapian and notmuch installed

$ rpm -q libxapian22 notmuch
libxapian22-1.2.8-2.1.2.x86_64
notmuch-0.14-20.3.x86_64

[1] http://notmuchmail.org/manpages/notmuch-search-1/

BTW: please CC me in a reply, I've just signed to the ML, but did not
get the you-were-subscribed email from mailman.

Thanks for a help
Michal Vyskocil
signature.asc (application/pgp-signature)

Thread: