From: Mark Walters Date: Wed, 13 Feb 2013 07:55:20 +0000 (+0000) Subject: Re: Search using email headers does not work X-Git-Url: http://git.tremily.us/?p=notmuch-archives.git;a=commitdiff_plain;h=2431764beb30c19c638ea4a79491e14d20fa7cce Re: Search using email headers does not work --- diff --git a/eb/84e3bc9434303fd9ddd0309ff007676ee66a62 b/eb/84e3bc9434303fd9ddd0309ff007676ee66a62 new file mode 100644 index 000000000..3fb0fa8d6 --- /dev/null +++ b/eb/84e3bc9434303fd9ddd0309ff007676ee66a62 @@ -0,0 +1,113 @@ +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 F26F4431FC9 + for ; Tue, 12 Feb 2013 23:55:20 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -1.098 +X-Spam-Level: +X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=unavailable +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 OzPZAGnqE92i for ; + Tue, 12 Feb 2013 23:55:20 -0800 (PST) +Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 9B080431FC7 + for ; Tue, 12 Feb 2013 23:55:20 -0800 (PST) +Received: from smtp.qmul.ac.uk ([138.37.6.40]) + by mail2.qmul.ac.uk with esmtp (Exim 4.71) + (envelope-from ) + id 1U5XBS-00041v-4a; Wed, 13 Feb 2013 07:55:16 +0000 +Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost) + by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71) + (envelope-from ) + id 1U5XBR-0002CE-RQ; Wed, 13 Feb 2013 07:55:14 +0000 +From: Mark Walters +To: David Bremner , Carl Worth , + Michal Vyskocil , notmuch@notmuchmail.org +Subject: Re: Search using email headers does not work +In-Reply-To: <87mwv9i9ho.fsf@convex-new.cs.unb.ca> +References: <20130211145259.GF7346@zelvantb.site> + <87ehgl92e5.fsf@zancas.localnet> + <877gmdo46y.fsf@servo.finestructure.net> + <20130212173216.GL7346@zelvantb.site> + <87wqudi9u0.fsf@yoom.home.cworth.org> + <87mwv9i9ho.fsf@convex-new.cs.unb.ca> +User-Agent: Notmuch/0.14+255~gff3cc55 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Wed, 13 Feb 2013 07:55:20 +0000 +Message-ID: <87ip5wlkbb.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Sender-Host-Address: 93.97.24.31 +X-QM-SPAM-Info: Sender has good ham record. :) +X-QM-Body-MD5: 44354469161e4b6eadccffcb1ea60ec2 (of first 20000 bytes) +X-SpamAssassin-Score: -1.8 +X-SpamAssassin-SpamBar: - +X-SpamAssassin-Report: The QM spam filters have analysed this message to + determine if it is + spam. We require at least 5.0 points to mark a message as spam. + This message scored -1.8 points. + Summary of the scoring: + * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, + * medium trust + * [138.37.6.40 listed in list.dnswl.org] + * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail + provider * (markwalters1009[at]gmail.com) + * 0.5 AWL AWL: From: address is in the auto white-list +X-QM-Scan-Virus: ClamAV says the message is clean +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: Wed, 13 Feb 2013 07:55:21 -0000 + + +I think I mentioned this on irc sometime ago: would indexing all the +headers as a separate free text entry (under headers: for example) +satisfy most of this. So then you could search for things like +headers:"List-Id: blah" or similar. + +It is not as nice as individually indexed headers, but it does mean that +all notmuch instances would be the same and the same commands would +work, the library interface would be consistent etc. + +Best wishes + +Mark + + + +On Tue, 12 Feb 2013, David Bremner wrote: +> Carl Worth writes: +>> +>> It's embarrassing to me that I added this note to the notmuch TODO file +>> in October 2009 (and it's still there): +>> +>> Add support for the user to specify custom headers to be indexed. +> +> One techicality is that we would presumeably want to support this both +> for access via the CLI and via libnotmuch (e.g. for the python +> bindings). So there is the question of where to store the list of +> indexed headers; perhaps in Xapian metadata. Or is there some simpler +> solution? +> +> d +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch