[PATCH v2 1/3] emacs: Document notmuch-show-get-message-properties
authorDaniel Schoepe <daniel.schoepe@googlemail.com>
Fri, 8 Jul 2011 18:46:55 +0000 (20:46 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:01 +0000 (09:39 -0800)
19/1486c0071978159e5df898e0cb707df3c81541 [new file with mode: 0644]

diff --git a/19/1486c0071978159e5df898e0cb707df3c81541 b/19/1486c0071978159e5df898e0cb707df3c81541
new file mode 100644 (file)
index 0000000..f72dba6
--- /dev/null
@@ -0,0 +1,85 @@
+Return-Path: <daniel.schoepe@googlemail.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 CBEFF429E26\r
+       for <notmuch@notmuchmail.org>; Fri,  8 Jul 2011 11:47:08 -0700 (PDT)\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 r1Lueexd2j4A for <notmuch@notmuchmail.org>;\r
+       Fri,  8 Jul 2011 11:47:07 -0700 (PDT)\r
+Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com\r
+       [209.85.161.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 8ADD5431FD0\r
+       for <notmuch@notmuchmail.org>; Fri,  8 Jul 2011 11:47:06 -0700 (PDT)\r
+Received: by mail-fx0-f46.google.com with SMTP id 19so2355176fxh.19\r
+       for <notmuch@notmuchmail.org>; Fri, 08 Jul 2011 11:47:06 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=googlemail.com; s=gamma;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       bh=kEsJYfD2P0nbMpPUHlNn/0ZmJPo5hSyXOMLGZGUtFMA=;\r
+       b=FEQby/FNVKcrl+Fs5p8glePLzVAhCa75HSrmDJcbFjKzgMX1FvfC9Cs8N87NNMI1hJ\r
+       QfCf4pi/ffnL1+AjNaSgnJP/TSE2uLZkHcNWYUzMhojAfZbG3drRnnSisYd2ZGu+5x6S\r
+       qLRP/UWJ/hS3HGfZe5lPSJUrVuA4tmq4Tn7vA=\r
+Received: by 10.223.24.134 with SMTP id v6mr3441439fab.146.1310150826253;\r
+       Fri, 08 Jul 2011 11:47:06 -0700 (PDT)\r
+Received: from localhost (dslb-178-004-020-175.pools.arcor-ip.net\r
+       [178.4.20.175])\r
+       by mx.google.com with ESMTPS id y21sm838882fad.39.2011.07.08.11.47.04\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Fri, 08 Jul 2011 11:47:04 -0700 (PDT)\r
+From: Daniel Schoepe <daniel.schoepe@googlemail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 1/3] emacs: Document notmuch-show-get-message-properties\r
+Date: Fri,  8 Jul 2011 20:46:55 +0200\r
+Message-Id: <1310150817-15213-2-git-send-email-daniel.schoepe@googlemail.com>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To: <1310150817-15213-1-git-send-email-daniel.schoepe@googlemail.com>\r
+References: <1307921480-17130-1-git-send-email-daniel.schoepe@googlemail.com>\r
+       <1310150817-15213-1-git-send-email-daniel.schoepe@googlemail.com>\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: Fri, 08 Jul 2011 18:47:09 -0000\r
+\r
+---\r
+ emacs/notmuch-show.el |    6 ++++++\r
+ 1 files changed, 6 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index f96743b..262addb 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -999,6 +999,12 @@ All currently available key bindings:\r
+     (put-text-property (point) (+ (point) 1) :notmuch-message-properties props)))\r
\r
+ (defun notmuch-show-get-message-properties ()\r
++  "Return the properties of the current message as a plist.\r
++\r
++Some useful entries are:\r
++:headers - Property list containing the headers :Date, :Subject, :From, etc.\r
++:body - Body of the message\r
++:tags - Tags for this message"\r
+   (save-excursion\r
+     (notmuch-show-move-to-message-top)\r
+     (get-text-property (point) :notmuch-message-properties)))\r
+-- \r
+1.7.5.4\r
+\r