From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 29CE4431FC0 for ; Fri, 29 Mar 2013 12:43:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 eaMB+GneOF1b for ; Fri, 29 Mar 2013 12:43:51 -0700 (PDT) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id 7DDA1431FAF for ; Fri, 29 Mar 2013 12:43:51 -0700 (PDT) Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) by fire-doxen-postvirus (Postfix) with ESMTP id 15F042E50F18; Fri, 29 Mar 2013 12:43:49 -0700 (PDT) X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new Received: from finestructure.net (DHCP-123-224.caltech.edu [131.215.123.224]) (Authenticated sender: jrollins) by fire-doxen-submit (Postfix) with ESMTP id 2F6422E51047; Fri, 29 Mar 2013 12:43:45 -0700 (PDT) Received: by finestructure.net (Postfix, from userid 1000) id A88A762217; Fri, 29 Mar 2013 12:43:44 -0700 (PDT) From: Jameson Graef Rollins To: Michal Vyskocil , notmuch@notmuchmail.org Subject: Re: funcmail.py: generate notmuch-tags based on headers In-Reply-To: <20130322115623.GA18329@linux-xtv2.site> References: <20130322115623.GA18329@linux-xtv2.site> User-Agent: Notmuch/0.15+8~gd4a7374 (http://notmuchmail.org) Emacs/24.2.1 (x86_64-pc-linux-gnu) Date: Fri, 29 Mar 2013 12:43:41 -0700 Message-ID: <87r4iyq9ea.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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: Fri, 29 Mar 2013 19:43:52 -0000 --=-=-= Content-Type: text/plain On Fri, Mar 22 2013, Michal Vyskocil wrote: > because it seems that notmuch does not index all headers, I've written a > simple, but quite usable tool, which goes through a maildir and generate > an output for notmuch-tag --batch according a simple rules. I've > borrowed the syntax from notmuch-tag --batch format, so it should be > very easy for any notmuch user to configure. > > You can query the content of a paricular header > # tags will be applied when string is in header > +notmuch -inbox -- 'notmuch.notmuchmail.org' in 'List-Id' Hi, Michal. You might consider using a format that might be actually adopted by notmuch down the line. This is sure to set off a protracted bike-shedding debate, but let me get the ball rolling. Imagine down the line we are able to index arbitrary user-specified headers. Maybe we could adopt a new search prefix of the form: x:
: e.g. x:list-id:notmuch.notmuchmail.org I think this would work with the Xapian term prefixing, but I'll let the Xapian experts comment. Bike shed away! jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJRVe7tAAoJEO00zqvie6q8NwUP/AjHJtxR/yyQ4gDQxXuQ2dj2 c5SfZKbugNGt9smJ8/bP/qRE9jJx7N/UcpST91vZkcTdg3l+wSCCgglNPOfjS1rP kgt5b2cBfDANG8uT2aYvgIWSYNdNfSJSO9PkanrPM6UmJgvCPCzAn8AV/H6sIFuI 6rnRyhK3MsTBFFP9ITlFDegiQ6lSxuj8Lf3C8hkurBUhgg00S4Fsh6WBo0VehK6g SXNKpZHA9wPOuRweELF6nz5isazmw08M8qrn5lxMLksk+p+D3wY07U7ISEstt6Ux wNEfJm+rg3YFvWCoUqbIEnAzWYlkq7X/T/xbxRMxCeJ5EBRTedMoZPlXWj0Gbt9E YyZVhnZ0cvmVLkLDTnqBsAddM2sgTTwMLjgOHMW0zPrR4ikCKrGYVNHyece9Tw1C 2i39Y4up128T/axcu454IchhuxicY8dL86KUQw4C1Xy/1Tto57HNssFyFi4HypAi Fget4Np9p+eHci5keuA0idEvtb8imrefR0XY2xaQUJf8NE31p1s/JC/yKFSH+/WI LPqvKtMbqY/wPDUW4ryXM+oujJSHYJcDQNWi8aoXTuJWkqD+Ep7oRiR9EKa5gxxf +f08sGEaIKjVjq1fowv9KAJUaf/YqK18ceqcXj6e/cwlfZxDKDjFTAFh4z9kZNjs jjr9N9Pr2tfp/l5C0Ijs =p8ge -----END PGP SIGNATURE----- --=-=-=--