From: Michal Vyskocil Date: Mon, 11 Feb 2013 14:52:59 +0000 (+0100) Subject: Search using email headers does not work X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b60d1ab1ee2e9fe63f6b6474d9d10b024fa677e4;p=notmuch-archives.git Search using email headers does not work --- diff --git a/bf/a9fd0f136758de2fc603045e0cf064d415480f b/bf/a9fd0f136758de2fc603045e0cf064d415480f new file mode 100644 index 000000000..622221671 --- /dev/null +++ b/bf/a9fd0f136758de2fc603045e0cf064d415480f @@ -0,0 +1,115 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 403D1431FBD + for ; Mon, 11 Feb 2013 11:24:16 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -5 +X-Spam-Level: +X-Spam-Status: No, score=-5 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_HI=-5] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id CVeu+aADQjbv for ; + Mon, 11 Feb 2013 11:24:14 -0800 (PST) +X-Greylist: delayed 4166 seconds by postgrey-1.32 at olra; + Mon, 11 Feb 2013 11:24:14 PST +Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 80C94431FAE + for ; Mon, 11 Feb 2013 11:24:14 -0800 (PST) +Received: from relay1.suse.de (unknown [195.135.220.254]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by mx2.suse.de (Postfix) with ESMTP id BC277A39D2 + for ; Mon, 11 Feb 2013 15:51:54 +0100 (CET) +Date: Mon, 11 Feb 2013 15:52:59 +0100 +From: Michal Vyskocil +To: notmuch@notmuchmail.org +Subject: Search using email headers does not work +Message-ID: <20130211145259.GF7346@zelvantb.site> +MIME-Version: 1.0 +Content-Type: multipart/signed; micalg=pgp-sha1; + protocol="application/pgp-signature"; boundary="uCPdOCrL+PnN2Vxy" +Content-Disposition: inline +User-Agent: Mutt/1.5.21 (2010-09-15) +X-Mailman-Approved-At: Mon, 11 Feb 2013 13:21:49 -0800 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 11 Feb 2013 19:24:16 -0000 + + +--uCPdOCrL+PnN2Vxy +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline + +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 + +--uCPdOCrL+PnN2Vxy +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: Digital signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iEYEARECAAYFAlEZBcsACgkQGwzgx2QvQgR85gCeM99H7ZsaXLYOKCNyojTKoFLR +wDEAniPWnoPfO1/cVoH3z2V2oavWH8B2 +=lLcN +-----END PGP SIGNATURE----- + +--uCPdOCrL+PnN2Vxy--