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 925784048CE for ; Fri, 12 Mar 2010 00:31:23 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.066 X-Spam-Level: X-Spam-Status: No, score=-1.066 tagged_above=-999 required=5 tests=[AWL=-0.881, BAYES_40=-0.185] 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 zvaoTq+Pr2Vr for ; Fri, 12 Mar 2010 00:31:22 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id A18A34048CA for ; Fri, 12 Mar 2010 00:31:22 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id E3A1619F362F; Fri, 12 Mar 2010 09:31:21 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id DQBJIe8a+61d; Fri, 12 Mar 2010 09:31:20 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 9858719F362C; Fri, 12 Mar 2010 09:31:20 +0100 (CET) Received: from steelpick.localdomain (k335-30.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 8ED3BFA003; Fri, 12 Mar 2010 09:31:20 +0100 (CET) Received: from wsh by steelpick.localdomain with local (Exim 4.71) (envelope-from ) id 1Nq0H9-00057A-Jt; Fri, 12 Mar 2010 09:31:19 +0100 From: Michal Sojka To: David A Benjamin , Ben Gamari In-Reply-To: References: <4b990b7b.0e67f10a.073c.0686@mx.google.com> Date: Fri, 12 Mar 2010 09:31:19 +0100 Message-ID: <87eijqlz54.fsf@steelpick.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch Subject: Re: Notmuch command interface 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, 12 Mar 2010 08:31:23 -0000 On Thu, 11 Mar 2010, David A Benjamin wrote: > On Thu, 11 Mar 2010, Ben Gamari wrote: > > While the notmuch command-line interface is fantastic, there defintely are a few > > gaps which hurt performance. Since I've been following, I've seen several > > threads on how to handle message addition and initial tagging[1][2]. I recall > > that some time ago Carl had the idea of applying only a 'new' tag during notmuch > > new. I strongly supported this proposal yet it seems that nothing ever became of > > it. Is there a reason for this? Would a patch be accepted? > > > > To avoid breaking the current behavior, what if the set of tags applied to > new/moved/deleted(?) messages could be set on the command line or some > other library interface, while just perhaps defaulting to unread/inbox? > This would support both the current behavior and a hooks-like workflow > without notmuch itself treating any tags (new, unread, inbox, etc.) as > "special". Hi, in id:87ljecmnbd.fsf@steelpick.localdomain, I outlined my idea about mail store abstraction. To go on with the idea, I think that the set of initial tags should be determined by mail store implementation. Currently I think that new messages should be tagged as follows: 1) immutable file-based mail store: inbox + unread (backward compatibility with current notmuch) 2) Maildir-based mail store: inbox + tags derived from maildir flags. 3) git-based mail store: arbitrary tags stored in git repository (perhaps by MDA). In 3) you could therfore use any policy you want to do initial tagging of your messages. What do you think? Unfortunately, I didn't make much progress in implementating this, but it's definitely a priority for me because I want to get rid of slow notmuchsync. Cheers, Michal