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 82CEB40B96F for ; Tue, 27 Jul 2010 08:23:36 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham 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 X1DL9RXw6kgP for ; Tue, 27 Jul 2010 08:23:26 -0700 (PDT) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by olra.theworths.org (Postfix) with ESMTP id 030E74196F2 for ; Tue, 27 Jul 2010 08:23:25 -0700 (PDT) Received: by vws15 with SMTP id 15so3506159vws.26 for ; Tue, 27 Jul 2010 08:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=SWiy5yKxPDGKHRFN1O3vQWiCP8jot2nghIb4IVlnU8k=; b=cLujoqU3GFEvXS+ZuxTf6MvzJeeNT3hBPoklCfYZo8wEecYi8GXPD5sR0wLM6LsxHv /9XE0PoPtkGjOhYhwnKqv/xoq6guELGV6A1TdJxAciMxT0QPTfNUvy27vrDJ6yeOIZIJ sggKpgnLR1KR01jvJjnYNJOT0oEnld/SGA3CU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=OR/MmX0vrL113kYYk48U7iYfLaK0FzxBIsK/0THefnC6YlgNnaCoNA3l5aEpkCl9hN kVPwUHlJqLQis/SAoXeZSZxcfUBOKA/sJeS2cbfdP2ZuQTPXLikg9dzX7zEHgA1gGQI6 TEueUjXLfuAJG7eDBShiQVupViymI7emwQEIY= Received: by 10.220.87.70 with SMTP id v6mr5208309vcl.226.1280244204619; Tue, 27 Jul 2010 08:23:24 -0700 (PDT) Received: from [10.1.10.12] (c-98-204-215-244.hsd1.md.comcast.net [98.204.215.244]) by mx.google.com with ESMTPS id w31sm2633174vbs.5.2010.07.27.08.23.23 (version=SSLv3 cipher=RC4-MD5); Tue, 27 Jul 2010 08:23:23 -0700 (PDT) Message-ID: <4C4EF9E9.2000801@gmail.com> Date: Tue, 27 Jul 2010 11:23:21 -0400 From: eric casteleijn User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Lightning/1.0b1 Thunderbird/3.0.6 MIME-Version: 1.0 To: notmuch@notmuchmail.org Subject: Searching on arbitrary message headers Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 27 Jul 2010 15:23:36 -0000 Hi list, after a tip from a colleague I've installed notmuch over the weekend, and I'm impressed with its speed and flexibility to the point that I'd really like to switch to using it exclusively. To be able to do that there is one thing I need that I haven't figured out how to do yet, or indeed if it's possible at all currently: Is there a way to search in arbitrary headers? From initial experimentation, it seems not: I can search in headers that are explicitly indexed, such as subject:, to: and from:, or in the body text, but it does not seem that the raw message is indexed, and I've not found a way to add additional indexes. My specific use case is that I get a lot of automated mail from launchpad, which uses headers like 'X-Launchpad-Message-Rationale' to indicate why a particular message is being delivered to me. Thunderbird allows me to filter on arbitrary headers, which means I can divert messages that are unlikely to need my attention so that they don't hit my inbox. I realize that indexing the raw message is probably not a good idea, since for instance the routing of a particular message is unlikely to be of interest, but I was wondering if there is a way to specify additional headers to be indexed by notmuch, or if not, if others would find this a worthwhile addition? -- eric casteleijn https://code.launchpad.net/~thisfred http://thisfred.posterous.com/