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 A0807431FB6 for ; Mon, 4 Apr 2011 22:42:34 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 zFQ0a4nl3vwc for ; Mon, 4 Apr 2011 22:42:33 -0700 (PDT) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by olra.theworths.org (Postfix) with ESMTP id BDE92431FB5 for ; Mon, 4 Apr 2011 22:42:33 -0700 (PDT) Received: from pd4ml3so-ssvc.prod.shaw.ca ([10.0.141.150]) by pd2mo1so-svcs.prod.shaw.ca with ESMTP; 04 Apr 2011 23:42:31 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=fp/YrIG6YJuYYWILSlVONgBms0XWtFqTjqHWlNKfnDg= c=1 sm=1 a=Rsd4VCfMyRYA:10 a=BLceEmwcHowA:10 a=GmI124iNGYoA:10 a=fZIboY/cEU6l/H7GC6ozQQ==:17 a=pGLkceISAAAA:8 a=GIalLGfRMgzawCX8fV0A:9 a=KDAKdJ8B5ObXlZGk1twA:7 a=MSl-tDqOz04A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO fanny.gardenlogbook.com) ([96.50.110.35]) by pd4ml3so-dmz.prod.shaw.ca with ESMTP; 04 Apr 2011 23:42:31 -0600 Received: from jeff by fanny.gardenlogbook.com with local (Exim 4.72) (envelope-from ) id 1Q6yrb-0005SC-BE; Mon, 04 Apr 2011 22:31:39 -0700 Message-Id: From: Jeff Richards Subject: [PATCH v2] notmuch.vim can now archive threads using a from the show screen To: Felipe Contreras In-Reply-To: References: Date: Mon, 04 Apr 2011 22:31:39 -0700 Cc: notmuch@notmuchmail.org 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: Tue, 05 Apr 2011 05:42:35 -0000 On Mon, 4 Apr 2011 18:58:48 +0300, Felipe Contreras wrote: > On Mon, Apr 4, 2011 at 4:46 AM, Jeff Richards wrote: > > Implements the already shelled out function for archiving messages while looking at a message. > > I'm not sure if this should also remove from 'unread', or we should > have two actions, one that removes from both unread and 'inbox', and > another one only for 'inbox'. > Yep, that's a good point. Following the functionality for the search screen, the show screen should just remove the inbox tag and that's it. --- vim/plugin/notmuch.vim | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index 67501d8..eae5297 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -507,7 +507,7 @@ function! s:NM_show_next_thread() endfunction function! s:NM_show_archive_thread() - echo 'not implemented' + call NM_add_remove_tags(b:nm_search_words, '-', ['inbox']) endfunction function! s:NM_show_mark_read_then_archive_thread() -- 1.7.2.3