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 834DD4196F2 for ; Mon, 12 Apr 2010 08:56:10 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.89 X-Spam-Level: X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] 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 XniUITdiJGi2 for ; Mon, 12 Apr 2010 08:56:09 -0700 (PDT) Received: from tarap.cc.columbia.edu (tarap.cc.columbia.edu [128.59.29.7]) by olra.theworths.org (Postfix) with ESMTP id 7438B431FC1 for ; Mon, 12 Apr 2010 08:56:09 -0700 (PDT) Received: from servo.finestructure.net (geco.phys.columbia.edu [128.59.170.159]) (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0) by tarap.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id o3CFtwMR012780 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Mon, 12 Apr 2010 11:56:01 -0400 (EDT) Received: from jrollins by servo.finestructure.net with local (Exim 4.71) (envelope-from ) id 1O1LzS-0001vW-OV; Mon, 12 Apr 2010 11:55:58 -0400 From: Jameson Rollins To: Michal Sojka , Sebastian Spaeth , Anthony Towns , notmuch Subject: Re: [PATCH] notmuch new --new-tags=tags... In-Reply-To: <87633wbt9f.fsf@steelpick.2x.cz> References: <871velp0be.fsf@SSpaeth.de> <87y6gseval.fsf@servo.finestructure.net> <87633wbt9f.fsf@steelpick.2x.cz> Date: Mon, 12 Apr 2010 11:55:55 -0400 Message-ID: <87ljcsekc4.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.7 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: Mon, 12 Apr 2010 15:56:10 -0000 --=-=-= On Mon, 12 Apr 2010 17:11:24 +0200, Michal Sojka wrote: > In my mailstore abstraction patches, I suppose that tags for new > messages are derived in some way from mailstore. The idea is, that once > we have a mail store which can store tags (e.g. git-based mails store), > the tags will be assigned on delivery by tools like procmail and notmuch > will only index that tags for faster searching. The problem is the it > will take some time to implement all of this and we want this > functionality now. This is a big effort, and not one that all notmuch users are really interested in, so I would like to not see it specifically guide notmuch development. There are lots of features that would be nice to have soon. In any event, I wasn't suggesting we drop everything to do this. I was just curious what people thought of this approach. > The problem I see with this approach is, that all notmuch searches are > build around Xapian. A simple implementation of the above would mean > that whenever you add a new message to the database, you would need to > execute a Xapian query to see if the new message matches your rule or > not. This would be, of course, very expensive. This does sound like a potential issue. I definitely don't understand how new messages are added to the database. I was mostly suggesting a syntax for adding tag as new messages are added, though, not that an actual xapian search term. I don't know if they can be decoupled, though. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJLw0KLAAoJEO00zqvie6q8XRMP/2iTMPoZSUeLzdREjgcd6VpW DBRvnEObEps0i93Kw3eldtcjL/Mt9PMlIP74Pl/GTkKjPbiQcxkOy4WmzwsODCVh i3AiughJoUEVuLuf5+12o5i0lpfwNNYw5dlGC4ZmLNeiupNqJlB8jbcO50wC39Q7 7dlb0sumkZYF0kplWVheF9o/S3c9cLnqeOM4M4btt88HwBo/5A87J4LESUCw73is GChSQrt0XH8Iaab0yf9nwa//2T5zWR6LuJnU1zPlouJw1Yl/OqCqyWoNMJqFT1iB MHPXdmIFVuAktwXMB+ki0wlIjZh1YKzj7zIZWgeZQj/ANIypxfvb4jo4Ui7TfVUX kM6TpcSBVJpLg9dxsYeMhBD2ijQdFYw39tr5XSwAsePEOeMoEFOZgh+G+baR6ZsD o9eOnx0yQ15iEF+wnCUfpWzDBCfNqj+6OVXShfC2+NscpYD7q3zCt1teAWc4yBdc 8iw7bVg9BtswaVdrmDfSRWlYEr+pbn5mhJfy3mfiHtx4aPE3sZaFSlwhhDpPkCyN RBeMUuGrOBMDbeWtMeaJSY1NrfDxQJIIZQt3H6zuQ5AECPglyEEneoRkzYRDQW+3 zugmcUrlPCNx2DEURu1uMJbDlP53pgJJ+XtCL0LwtZOqI3iGsUxOn8RY4FmJlpOe MoxN1mivip1N1sMnQWzl =X0Z2 -----END PGP SIGNATURE----- --=-=-=--