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