Search using email headers does not work
authorMichal Vyskocil <mvyskocil@suse.cz>
Mon, 11 Feb 2013 14:52:59 +0000 (15:52 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:53:33 +0000 (09:53 -0800)
bf/a9fd0f136758de2fc603045e0cf064d415480f [new file with mode: 0644]

diff --git a/bf/a9fd0f136758de2fc603045e0cf064d415480f b/bf/a9fd0f136758de2fc603045e0cf064d415480f
new file mode 100644 (file)
index 0000000..6222216
--- /dev/null
@@ -0,0 +1,115 @@
+Return-Path: <mvyskocil@suse.cz>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 403D1431FBD\r
+       for <notmuch@notmuchmail.org>; Mon, 11 Feb 2013 11:24:16 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -5\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-5 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_HI=-5] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id CVeu+aADQjbv for <notmuch@notmuchmail.org>;\r
+       Mon, 11 Feb 2013 11:24:14 -0800 (PST)\r
+X-Greylist: delayed 4166 seconds by postgrey-1.32 at olra;\r
+       Mon, 11 Feb 2013 11:24:14 PST\r
+Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 80C94431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 11 Feb 2013 11:24:14 -0800 (PST)\r
+Received: from relay1.suse.de (unknown [195.135.220.254])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by mx2.suse.de (Postfix) with ESMTP id BC277A39D2\r
+       for <notmuch@notmuchmail.org>; Mon, 11 Feb 2013 15:51:54 +0100 (CET)\r
+Date: Mon, 11 Feb 2013 15:52:59 +0100\r
+From: Michal Vyskocil <mvyskocil@suse.cz>\r
+To: notmuch@notmuchmail.org\r
+Subject: Search using email headers does not work\r
+Message-ID: <20130211145259.GF7346@zelvantb.site>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="uCPdOCrL+PnN2Vxy"\r
+Content-Disposition: inline\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Mailman-Approved-At: Mon, 11 Feb 2013 13:21:49 -0800\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 11 Feb 2013 19:24:16 -0000\r
+\r
+\r
+--uCPdOCrL+PnN2Vxy\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+\r
+Hi,\r
+\r
+I'd like to search for all emails with a defined email header. According\r
+notmuch-search(1) [1] this should be a trivial. But I got a very limited\r
+results\r
+\r
+$ notmuch count --exclude=false "X-Mailinglist"\r
+2\r
+\r
+where simple\r
+$ grep -R "^X-Mailinglist" .\r
+./new/1360572283.M251897P7737Q200Ra1da4988633e0842.zelvantb:X-Mailinglist:\r
+opensuse-factory\r
+./new/1360315438.M35384P12994Q25807R1a5203f9da8b1b28.zelvantb:X-Mailinglist:\r
+opensuse\r
+./new/1360315441.M705450P13019Q25830R71a1deb928bb7cf3.zelvantb:X-Mailinglist:\r
+opensuse\r
+./new/1360315436.M459220P12984Q25797R13d6f3a1f39d2148.zelvantb:X-Mailinglist:\r
+opensuse\r
+./new/1360315381.M437845P12634Q25464R3bccd68f2b8fd54f.zelvantb:X-Mailinglist:\r
+opensuse\r
+./new/1360315556.M414918P13763Q26528R614e01d632d1c3d8.zelvantb:X-Mailinglist:\r
+opensuse\r
+^C\r
+\r
+shows me, there are hundreds and hundreds of such emails in my local\r
+maildir. I use very simple setup generated by notmuch-setup with a basic\r
+set of inbox, undread signed and similar tags.\r
+\r
+Can anyone point me on a correct query string for such search? I have\r
+following versions of xapian and notmuch installed\r
+\r
+$ rpm -q libxapian22 notmuch\r
+libxapian22-1.2.8-2.1.2.x86_64\r
+notmuch-0.14-20.3.x86_64\r
+\r
+[1] http://notmuchmail.org/manpages/notmuch-search-1/\r
+\r
+BTW: please CC me in a reply, I've just signed to the ML, but did not\r
+get the you-were-subscribed email from mailman.\r
+\r
+Thanks for a help\r
+Michal Vyskocil\r
+\r
+--uCPdOCrL+PnN2Vxy\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: Digital signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2.0.19 (GNU/Linux)\r
+\r
+iEYEARECAAYFAlEZBcsACgkQGwzgx2QvQgR85gCeM99H7ZsaXLYOKCNyojTKoFLR\r
+wDEAniPWnoPfO1/cVoH3z2V2oavWH8B2\r
+=lLcN\r
+-----END PGP SIGNATURE-----\r
+\r
+--uCPdOCrL+PnN2Vxy--\r