From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 798066DE00DB for ; Thu, 18 May 2017 15:26:08 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.133 X-Spam-Level: X-Spam-Status: No, score=-0.133 tagged_above=-999 required=5 tests=[AWL=0.079, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uaVDYrWDyTft for ; Thu, 18 May 2017 15:26:07 -0700 (PDT) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by arlo.cworth.org (Postfix) with ESMTPS id 84BC16DE00C4 for ; Thu, 18 May 2017 15:25:49 -0700 (PDT) Received: by mail-wr0-f194.google.com with SMTP id 6so804931wrb.1 for ; Thu, 18 May 2017 15:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adirat-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=/kJt0LG0YjF93ntxqdCPgPgvjG0YgZu+QfrxAaCzLqs=; b=vuGQD+gpFefFhm1eBJRcdVhklxxNscmw6ZFShtriTOLci6Cl0IfItu6/NKCuqczfFa oAxOoxng3rB3op6Fqk6rEI0durUL3nLOWIwQpbbd9OR/j55U2+bENMDMXjYmNmbIYAwB uLeT8fXrkRTlGRx6kCQ0BqUJvNt7EULmvQ66TfD7lFApNoyHpE4cKdjHNaBO3ZcwM/Cc HL4rP6+SzZGuJKNU2hDqh6KP8MnDOfR8a+a39n1q2PEw00s3PO1fhlg9CmyrQaCSX7kO H6xqcbdr0fJvdxwid26PFnDzUHl0G+NxtnswgAp0L6pQNBuNz0fvnu3CFIgIxQoUkpZw hoeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=/kJt0LG0YjF93ntxqdCPgPgvjG0YgZu+QfrxAaCzLqs=; b=MYmSXL3qHI4ARSzjofEJjE16XQTOkb40465IhWvwBtNzSaLPiLFVqXpPHdVzWj4ORA x3HRy52OqkA6xzDaiVCbaGPRn2fj9d7wDf31WWW/otdHeMjQ2/U370eNObXgPmR/1tzW VcigORuvVxTvzYuLBVVZXYIwEivtMdHyRBZ/Wb4H6M1xPyUnyZE0KcVZMIzef/Sw/qDI A9QFm86zD/JzfFMVjw7H3kqITYOpEAVQr7fciaNnQ5EMpnHpvZlQsrT+nejSihzlVFL6 DDyR3NapkYu4YlV4hJohoLES0Iun0VuUGgK/9hKOTjFpMEM1JUE49xZyf+xxBGTvt0TL dnlw== X-Gm-Message-State: AODbwcDkoFsl/HrbNqWwCKpilBrlSxC+IYpQCh3S+Q5WRPfpbtbgAQt2 T4HkrYDAUUhzpaZBFWo= X-Received: by 10.223.142.135 with SMTP id q7mr661638wrb.180.1495146347960; Thu, 18 May 2017 15:25:47 -0700 (PDT) Received: from adiPC.adirat.com ([82.137.23.239]) by smtp.gmail.com with ESMTPSA id q16sm8141390wmg.2.2017.05.18.15.25.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 15:25:47 -0700 (PDT) From: Ioan-Adrian Ratiu To: notmuch@notmuchmail.org Subject: [PATCH v2 11/11] emacs: notmuch-show: add filesize to headerline Date: Fri, 19 May 2017 01:27:08 +0300 Message-Id: <20170518222708.30032-12-adi@adirat.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170518222708.30032-1-adi@adirat.com> References: <20170518222708.30032-1-adi@adirat.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Thu, 18 May 2017 22:26:08 -0000 Signed-off-by: Ioan-Adrian Ratiu --- emacs/notmuch-show.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index c670160d..f2cb09d2 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -446,7 +446,7 @@ unchanged ADDRESS if parsing fails." ;; Otherwise format the name and address together. (concat p-name " <" p-address ">")))) -(defun notmuch-show-insert-headerline (headers date tags depth) +(defun notmuch-show-insert-headerline (headers date filesize tags depth) "Insert a notmuch style headerline based on HEADERS for a message at DEPTH in the current thread." (let ((start (point))) @@ -456,6 +456,8 @@ message at DEPTH in the current thread." " (" date ") (" + (file-size-human-readable filesize) + ") (" (notmuch-tag-format-tags tags tags) ")\n") (overlay-put (make-overlay start (point)) 'face 'notmuch-message-summary-face))) @@ -1038,6 +1040,7 @@ is t, hide the part initially and show the button." (plist-get msg :date_relative) nil) (plist-get headers :Date)) + (plist-get msg :filesize) (plist-get msg :tags) depth) (setq content-start (point-marker)) -- 2.13.0