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 3D89D431FB6 for ; Wed, 4 May 2011 13:11:07 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 U69xXN1Zm0Oq for ; Wed, 4 May 2011 13:11:03 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D24BE431FB5 for ; Wed, 4 May 2011 13:11:02 -0700 (PDT) Received: by fxm8 with SMTP id 8so1123361fxm.26 for ; Wed, 04 May 2011 13:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=dBhIwJiuKN1VD2ymiLCkO/7GpeisydSdu3lkN1LZY1E=; b=wShKH3RgXjIAcC0UB50KmZd7y/7RQVrwk+raK+ErNYjQhnY3WnstLKqtt6PpEP9cMq 4BYK/HzhaqRMxT7j/azjhN1Vm6L5Op8Kf2PonPJtVPUoECR4TeZZJ4D1VGHUBX6aeVQV BpAyn+PCtep6l1+aD8L0qolI/c71S408YeqJY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=YTqj1ijr8AI3k7O1uvdLAMfPAW1KsdEVkHR4x9BUAS2b6iBvQu7l/OeEEzUNRoDOUC QMccLucMDFboeW8Urp3/P7ftaVe35V6wovf+nL7LB61h7apb9ajtKnKbHgpLdPmllLMi g4oSdcbUsv+I5E+BaSv+MdXBKdv9N/QlESzdY= MIME-Version: 1.0 Received: by 10.223.100.86 with SMTP id x22mr1739358fan.108.1304539861573; Wed, 04 May 2011 13:11:01 -0700 (PDT) Received: by 10.223.74.130 with HTTP; Wed, 4 May 2011 13:11:01 -0700 (PDT) In-Reply-To: References: Date: Wed, 4 May 2011 23:11:01 +0300 Message-ID: Subject: Re: [PATCH v2] notmuch.vim can now archive threads using a from the show screen From: Felipe Contreras To: Jeff Richards Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Wed, 04 May 2011 20:11:07 -0000 On Tue, Apr 5, 2011 at 8:31 AM, Jeff Richards wrote: > 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 whi= le 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. =C2=A0Following the functionality for the searc= h screen, the show screen should just remove the inbox tag and that's it. > > --- > =C2=A0vim/plugin/notmuch.vim | =C2=A0 =C2=A02 +- > =C2=A01 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() > =C2=A0endfunction > > =C2=A0function! s:NM_show_archive_thread() > - =C2=A0 =C2=A0 =C2=A0 =C2=A0echo 'not implemented' > + =C2=A0 =C2=A0 =C2=A0 =C2=A0call NM_add_remove_tags(b:nm_search_wor= ds, '-', ['inbox']) > =C2=A0endfunction > > =C2=A0function! s:NM_show_mark_read_then_archive_thread() > -- > 1.7.2.3 Actually I had sent a patch for this long time ago: http://mid.gmane.org/1291933240-5328-1-git-send-email-felipe.contreras@gmai= l.com I have pushed that one. --=20 Felipe Contreras