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 A8C1E431FDA for ; Thu, 28 Jan 2010 13:14:24 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.059 X-Spam-Level: X-Spam-Status: No, score=-0.059 tagged_above=-999 required=5 tests=[AWL=-0.060, BAYES_50=0.001] 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 qNQFjx3KEIFf for ; Thu, 28 Jan 2010 13:14:24 -0800 (PST) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by olra.theworths.org (Postfix) with ESMTP id D11C4431FD5 for ; Thu, 28 Jan 2010 13:14:23 -0800 (PST) Received: by fg-out-1718.google.com with SMTP id 16so219275fgg.2 for ; Thu, 28 Jan 2010 13:14:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject :in-reply-to:references:date:message-id:mime-version:content-type; bh=mE+rg7zSvrEHGTClbxcnnGmgRnhY9KRRtwZwOFk4mcI=; b=ZyXY298wJfVYJR1XrVs0uNnvwrlBriAVc+KimegWqoeerkUBXWlWb0FQ8bzKyiwzX6 pPVWBwhj7fT5CMRPK/qnHdkmgLGi+T8ADqKGa/sS8WJdVfr/Kp1RhD0c0DRViUYu5o+c EE7ZEcRcwUlrAZUwTfJP6hg+Kd3OwMBBVqB5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; b=f72fA1ewmVjvPwOt2iStvzm0YP7CHV7TzjkUZ1abXEeHvbRwazgRveIw6L49LELDRl Fpo13YSbP8gt1cWpN6MWk0QG0Z9MJckjG13Qn5n8MFbT0gEVVs6FfJ5u+HY0o5hSBZQn jj0Xh95wgQh/v2Bo6dSJ7xaN5ejZWYh/BWT0k= Received: by 10.87.69.33 with SMTP id w33mr504821fgk.29.1264713262845; Thu, 28 Jan 2010 13:14:22 -0800 (PST) Received: from kunyang (vawpc43.ethz.ch [129.132.59.11]) by mx.google.com with ESMTPS id 16sm199182fxm.0.2010.01.28.13.14.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 28 Jan 2010 13:14:21 -0800 (PST) Sender: Jed Brown From: Jed Brown To: Ben Gamari , notmuch In-Reply-To: <1264711745-sup-8326@ben-laptop> References: <20100125162247.85F0F66FA8@aether.pioto.org> <87tyu9dfhs.fsf@servo.finestructure.net> <20100128051057.GA12540@lapse.rw.madduck.net> <20100128203910.GC5237@lapse.rw.madduck.net> <1264711745-sup-8326@ben-laptop> Date: Thu, 28 Jan 2010 22:16:14 +0100 Message-ID: <877hr2ylpd.fsf@59A2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] tag dir proposal [was: Re: Git as notmuch object store] 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, 28 Jan 2010 21:14:24 -0000 On Thu, 28 Jan 2010 15:49:34 -0500, Ben Gamari wrote: > Sounds like you need to add a line to crontab. I haven't been following this thread closely so I hope this isn't too out of context. I agree that certain things like notmuch-new should go in the crontab, but I think that notmuch-new should need to be run exactly once to process a new batch of messages into the desired state. Having notmuch-new apply one set of tags and then relying on another process run afterwards to change the tags according to a filter is undesirable in my opinion, both for the mild performance reason of making two passes, but more importantly because of lock contention between the two processes and the ease of viewing the database in the inconsistent state. As far as I understand the situation, my favorite solution is to have notmuch-new run a hook on each message as it is indexed. Jed