Re: Search using email headers does not work
authorMichal Vyskocil <mvyskocil@suse.cz>
Tue, 12 Feb 2013 17:32:16 +0000 (18:32 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:53:34 +0000 (09:53 -0800)
bf/7d631eaabda9a7f9e10619026812d1beecbf48 [new file with mode: 0644]

diff --git a/bf/7d631eaabda9a7f9e10619026812d1beecbf48 b/bf/7d631eaabda9a7f9e10619026812d1beecbf48
new file mode 100644 (file)
index 0000000..5b4f95a
--- /dev/null
@@ -0,0 +1,111 @@
+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 A42EA431FBC\r
+       for <notmuch@notmuchmail.org>; Tue, 12 Feb 2013 09:31: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 odKbm6rwVlEH for <notmuch@notmuchmail.org>;\r
+       Tue, 12 Feb 2013 09:31:15 -0800 (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 11B2A431FAF\r
+       for <notmuch@notmuchmail.org>; Tue, 12 Feb 2013 09:31:15 -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 79E14A538A\r
+       for <notmuch@notmuchmail.org>; Tue, 12 Feb 2013 18:31:11 +0100 (CET)\r
+Date: Tue, 12 Feb 2013 18:32:16 +0100\r
+From: Michal Vyskocil <mvyskocil@suse.cz>\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: Search using email headers does not work\r
+Message-ID: <20130212173216.GL7346@zelvantb.site>\r
+References: <20130211145259.GF7346@zelvantb.site>\r
+       <87ehgl92e5.fsf@zancas.localnet>\r
+       <877gmdo46y.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="0qVF/w3MHQqLSynd"\r
+Content-Disposition: inline\r
+In-Reply-To: <877gmdo46y.fsf@servo.finestructure.net>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\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: Tue, 12 Feb 2013 17:31:16 -0000\r
+\r
+\r
+--0qVF/w3MHQqLSynd\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Tue, Feb 12, 2013 at 09:03:01AM -0800, Jameson Graef Rollins wrote:\r
+> On Tue, Feb 12 2013, David Bremner <david@tethera.net> wrote:\r
+> > Unfortunately currently headers other than those references in the\r
+> > notmuch-search-terms man page are not indexed.  The only workaround I\r
+> > can think of without patching notmuch is to use some tool to tag the\r
+> > messages you care about.\r
+>=20\r
+> I think even more importantly headers other than those that are parsed\r
+> are actually thrown to /dev/null.  They are not even indexed as plain\r
+> text, so you can search for terms in headers as you can for words in the\r
+> body.\r
+>=20\r
+> I asked this on irc but it got lost in the shuffle: would it make sense\r
+> to index the entire header block as plain text?  If we did that then at\r
+> least the search that Michal was trying would return the expected\r
+> results.  It would also be a fairly simple change to the indexer.  I\r
+> don't have a good sense of how much it would pollute the index, though.\r
+\r
+[skipping CC line and sending to list]\r
+\r
+Hi,\r
+\r
+I like such idea - but how hard would be to add a config options to\r
+extend a list of default headers used for indexing? I am not sure there\r
+is a strong need to index every bit from headers, just add few tips to\r
+the default list.\r
+\r
+Regards\r
+Michal Vyskocil\r
+\r
+>=20\r
+> Given how frequently people are asking for alternate header indexing, it\r
+> might be something to consider.\r
+>=20\r
+> jamie.\r
+\r
+\r
+\r
+--0qVF/w3MHQqLSynd\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
+iEUEARECAAYFAlEafKAACgkQGwzgx2QvQgTL/ACTBvzWztVmxw2VbEmRQuQf9gq+\r
+HQCfQMkhkPtw2nDarOEqigZG95cXhGE=\r
+=lcKZ\r
+-----END PGP SIGNATURE-----\r
+\r
+--0qVF/w3MHQqLSynd--\r