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 8F7FD431FB6 for ; Thu, 14 Apr 2011 01:23:48 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] 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 BkFYYwRkxy0H for ; Thu, 14 Apr 2011 01:23:47 -0700 (PDT) Received: from tesla.chaoflow.net (tesla.chaoflow.net [188.40.54.22]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id C3CE9431FB5 for ; Thu, 14 Apr 2011 01:23:47 -0700 (PDT) Received: from eve.chaoflow.net (p5DE96241.dip.t-dialin.net [93.233.98.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: flo@chaoflow.net) by tesla.chaoflow.net (Postfix) with ESMTPSA id 77974CACB for ; Thu, 14 Apr 2011 10:23:46 +0200 (CEST) Received: by eve.chaoflow.net (Postfix, from userid 1000) id 3A0BBB3A; Thu, 14 Apr 2011 08:23:46 +0000 (Local time zone must be set--see zic manual page) From: Florian Friesdorf To: notmuch@notmuchmail.org Subject: Optimization for notmuch tag by implicit filters User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) Date: Thu, 14 Apr 2011 10:23:46 +0200 Message-ID: <87y63d6y25.fsf@eve.chaoflow.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Virus-Scanned: clamav-milter 0.96.5 at tesla X-Virus-Status: 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: Thu, 14 Apr 2011 08:23:48 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable With 60k messages and 12k tagged as sent: $ time notmuch tag +sent -- from:flo@chaoflow.net real 0m8.561s user 0m8.069s sys 0m0.212s $ time notmuch tag +sent -- from:flo@chaoflow.net and not tag:sent real 0m0.043s user 0m0.036s sys 0m0.006s This could be made implicit: notmuch tag +A +B -- =2D-> notmuch tag +A +B -- and not \(tag:A and tag:B\) Apply command, if one of the tags is not set. notmuch tag -C -D -- =2D-> notmuch tag -C -D -- and \(tag:C or tag:D\) Apply command, if one of the tags is set. notmuch tag +A +B -C -D -- =2D-> notmuch tag +A +B -C -D -- and \(not tag:A or not tag:B\ or tag:C = or tag:D\) In order to enforce tagging and disable the filter there could be a flag. I lack the knowledge/time to implement it, but I think it's at least worth documenting it. =2D-=20 Florian Friesdorf GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083 Jabber/XMPP: flo@chaoflow.net IRC: chaoflow on freenode,ircnet,blafasel,OFTC --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAEBAgAGBQJNpq8SAAoJEDj4maMMRfCDt20QAMF/FL/nOfSTGJAZA3YrETSj /ND43NTRr/p2naP0PFu+MpwxVaRpANse4KBsjj6qCkL1za7gGxMzk5ijCh0I1URC WjhgECCWyieH3o4g9bKLcwwwohxlNtZb0FciiTsIZnhxwb+ogAw6u96h3hlL9ciP dPQQWRap8Mlh3YQNsNLVLrMUfC69DFFgeMf9fJV6ToFJmjN2R5Pi+EWe/CJlWhAP dXiqD85HmXF0+Bw5iJDaibDJ/A9YDqQCpexkzU0Gs/tFr8V9sou0eqGfF9paKxPE iOf3VPpEX+lvMvJO124PBUrB+0uBxTEX254iK4Fu+CoD39aaZUIbPiGj4t1CMpjF A3p1Yvb5b6g8pxPhDeLgLwd/eP3xgyrD6kQ9n8gyQr+Gbi9/AHVP3oFeQjAQSX5C ihCPmBEC6pgeqJf5XXbCLzYJNHQULWBg4BdaabdvniNnnrPDsFIcaKU0C5ZCXMDv diUcPpixGHqmZSzfc3wwioHYjlBN/XV0Zvwxbt+umoiGIn55pMUFjehieGw7hMiM eb9evZ/IlN1GmCBHaOhfi8EeeGuyXt/nFLquWfgttmZIvZUtnZUM4gJL2nPtXhY7 NECbivAcReh+MnN+88WwCFJ8cd3SCbL2YSdXKDDmh47ZS+qz+2AMSP1yFYnnHzQ/ SAY2KK+Yun696otKiLzR =32UJ -----END PGP SIGNATURE----- --=-=-=--