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 7CDEC431FC1 for ; Thu, 15 Apr 2010 14:07:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.5 X-Spam-Level: X-Spam-Status: No, score=-1.5 tagged_above=-999 required=5 tests=[BAYES_50=0.8, RCVD_IN_DNSWL_MED=-2.3] autolearn=unavailable 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 dCxtKByd-aCk for ; Thu, 15 Apr 2010 14:07:38 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by olra.theworths.org (Postfix) with ESMTP id CF5714196F0 for ; Thu, 15 Apr 2010 14:07:38 -0700 (PDT) Received: from localhost ([::1] helo=x200.gr8dns.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O2WHi-0003K3-A9; Thu, 15 Apr 2010 21:07:38 +0000 Received: by x200.gr8dns.org (Postfix, from userid 500) id D9762C005E; Thu, 15 Apr 2010 14:07:37 -0700 (PDT) From: Dirk Hohndel To: Carl Worth , notmuch@notmuchmail.org Subject: Re: The archive operation should only archive open messages In-Reply-To: <87633sfnyq.fsf@yoom.home.cworth.org> References: <87633sfnyq.fsf@yoom.home.cworth.org> Date: Thu, 15 Apr 2010 14:07:37 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html 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, 15 Apr 2010 21:07:40 -0000 On Thu, 15 Apr 2010 13:41:17 -0700, Carl Worth wrote: > One of the searches that I use most frequently, (for mail that I want to > respond to on a fairly timely basis), is > > tag:inbox and tag:to-me [*] > > Sometimes, this search will show a large mailing-list thread with only a > few messages open. Perhaps part-way through the thread, someone started > to CC me. Or perhaps my address got dropped from the CC at some > point. Either way, I am presented with a subset of the messages from the > thread, even though all of the thread's messages are in my inbox still. > > That much is just fine. I'm giving priority to messages where people > thought I would be particularly interested, and that's just as it should > be. > > A bad bug occurs when paging through the thread with the space > bar. After showing me these few messages, it will then proceed to > archive *all* the messages in the thread (not only those it showed > me). And I'm likely to be unaware of this since the closed (but not yet > archived) messages are not easily distinguished from messages that were > previously closed and archived. > > Some people will claim (and I've even agreed) that the space bar is too > magic. But this bug also happens with an explicit command to archive the > current thread (such as hitting 'a'). > > I think the fix is to change these commands to only archive the messages > that are currently open. That will make these operations behave as I > expect, and I don't think will cause any unexpected or confusing > behavior. But please let me know if you disagree. I am always confused about the behavior of 'a' - does it archive the current message? Or the current thread? Or the current thread down to where I am? Or (as you propose) just the open messages? I think we really need to spend some time to crsiply define the semantics of these commands. /D -- Dirk Hohndel Intel Open Source Technology Center