Re: [PATCH 3/6] emacs: add message archiving functions
authorAaron Ecay <aaronecay@gmail.com>
Tue, 17 Jan 2012 20:13:47 +0000 (15:13 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:42:29 +0000 (09:42 -0800)
5b/03636be52a8da095c64bdbe1d89a30a75866f2 [new file with mode: 0644]

diff --git a/5b/03636be52a8da095c64bdbe1d89a30a75866f2 b/5b/03636be52a8da095c64bdbe1d89a30a75866f2
new file mode 100644 (file)
index 0000000..f81256f
--- /dev/null
@@ -0,0 +1,102 @@
+Return-Path: <aaronecay@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id A9FAC421197\r
+       for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 12:13:51 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id So95lSQeh0m8 for <notmuch@notmuchmail.org>;\r
+       Tue, 17 Jan 2012 12:13:51 -0800 (PST)\r
+Received: from mail-qw0-f46.google.com (mail-qw0-f46.google.com\r
+       [209.85.216.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 214D9421192\r
+       for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 12:13:51 -0800 (PST)\r
+Received: by qadc10 with SMTP id c10so1218158qad.5\r
+       for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 12:13:50 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+       :mime-version:content-type:content-transfer-encoding;\r
+       bh=f7eCIEQQWvzA6Xp+QbjF+i57eJEZt1MUYkwzJP3vY98=;\r
+       b=ujpS6KDUiiyXdUWp/dJAd9l5HYg8l21ZWeUvHdZ6cfjVwo1+Q5iWDOceRD4jMdUsnA\r
+       ST54sLJ8Pb5aLl30sps0Qu5wEtlPsx8sUe8tXIK091jil3ueGg+qj/nzikNfjmipiWmm\r
+       dsLx7ZQpOzjs/uYyMzVoNL/jfCi0/pwKX9rbA=\r
+Received: by 10.229.134.201 with SMTP id k9mr6889912qct.10.1326831230516;\r
+       Tue, 17 Jan 2012 12:13:50 -0800 (PST)\r
+Received: from localhost (luw017.wlan.gapsa.upenn.edu. [128.91.230.146])\r
+       by mx.google.com with ESMTPS id r17sm45627211qap.11.2012.01.17.12.13.49\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Tue, 17 Jan 2012 12:13:49 -0800 (PST)\r
+From: Aaron Ecay <aaronecay@gmail.com>\r
+To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
+       Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: [PATCH 3/6] emacs: add message archiving functions\r
+In-Reply-To: <1326823531-14549-3-git-send-email-jrollins@finestructure.net>\r
+References: <871uqy19yo.fsf@servo.finestructure.net>\r
+       <1326823531-14549-1-git-send-email-jrollins@finestructure.net>\r
+       <1326823531-14549-2-git-send-email-jrollins@finestructure.net>\r
+       <1326823531-14549-3-git-send-email-jrollins@finestructure.net>\r
+User-Agent: Notmuch/0.11+62~ge41b0d3 (http://notmuchmail.org) Emacs/24.0.92.1\r
+       (i386-apple-darwin10.8.0)\r
+Date: Tue, 17 Jan 2012 15:13:47 -0500\r
+Message-ID: <m2aa5maxz8.fsf@gmail.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 17 Jan 2012 20:13:51 -0000\r
+\r
+On Tue, 17 Jan 2012 10:05:28 -0800, Jameson Graef Rollins <jrollins@finestr=\r
+ucture.net> wrote:\r
+> This adds two new message archiving functions that parallel the thread\r
+> archiving functions: notmuch-show-archive-message{,-then-next}.  The\r
+> former also takes a prefix argument to unarchive the message (ie. put\r
+> back in inbox).\r
+> ---\r
+>  emacs/notmuch-show.el |   17 +++++++++++++++++\r
+>  1 files changed, 17 insertions(+), 0 deletions(-)\r
+>=20\r
+> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+> index ee9ef62..207949c 100644\r
+> --- a/emacs/notmuch-show.el\r
+> +++ b/emacs/notmuch-show.el\r
+> @@ -1485,6 +1485,23 @@ buffer."\r
+>    (notmuch-show-archive-thread)\r
+>    (notmuch-show-next-thread))\r
+>=20=20\r
+> +(defun notmuch-show-archive-message (&optional unarchive)\r
+> +  "Archive the current message.\r
+> +\r
+> +If a prefix argument is given, the message will be\r
+> +\"unarchived\" (ie. the \"inbox\" tag will be added instead of\r
+> +removed)."\r
+> +  (interactive)\r
+\r
+If this function uses the prefix arg, its interactive call should be\r
+=E2=80=9C(interactive "P")=E2=80=9D.  This applies equally to the -thread v=\r
+ariant in\r
+patch 2/6, but I made the comment here because that diff doesn=E2=80=99t sh=\r
+ow\r
+the function contiguously.\r
+\r
+--=20\r
+Aaron Ecay\r