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 0043F6DE1117 for ; Thu, 18 May 2017 15:25:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.146 X-Spam-Level: X-Spam-Status: No, score=-0.146 tagged_above=-999 required=5 tests=[AWL=0.066, 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 9pS4nFAo93-2 for ; Thu, 18 May 2017 15:25:57 -0700 (PDT) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by arlo.cworth.org (Postfix) with ESMTPS id 6CF0D6DE0A77 for ; Thu, 18 May 2017 15:25:47 -0700 (PDT) Received: by mail-wr0-f193.google.com with SMTP id 6so804874wrb.1 for ; Thu, 18 May 2017 15:25:47 -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=IDoo/+KENH6OnSIVQPxmw9/m64QorS/nk7PrL/NHLUY=; b=wnKKy1oM0dMQaVT5WF0WYoH4KmL421ur+QSmawELtasXpvxhXMev1221CasQbxqchX wTJVpbL/Ng9IK2zWQtZIIFN0/WVkoO/56uuD2xWTLPT4j1o5ZKWU2jWHSnMFITPFtdMU It56tqeKWJ2pBPnp5AYcSC++3Ifd5L2SaYxGLSjb/5AWFGmauGrR8KsCp1kVgzLQ355D zeNREG32qMoicib7XCCNwp6+D+KWq1DykF/zmy5ijO+iG1mLKe7ufjnKm4fzGG8UDNy9 otGZNLosvVbrz8Sn42lDxetee2oTlxZaY5DeSSWLvShEuHcSJj2qB3p/oYsvjopiKn7c LbMw== 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=IDoo/+KENH6OnSIVQPxmw9/m64QorS/nk7PrL/NHLUY=; b=VAJyCFkkcgvyeKfoRRmUQtqgI1s5I/sgh+wMuxR/xpUACd6p6TtV36mZNoGcpTRPC0 d+LSTQCJeDlO7on5ibP8kOcx8HlUd1e3v3nNgArcqhW9ytS88quxI5Ywlhe8b6xEcSqU CMfCY1o+Jk6WzP3/A+ZkFTDR3RbmLI4G74iHDjC9D6X5kODuAy0BfgiCogU0nsoWwodd 3F1z68Yp2tIMVN1ETBelYDFA2RTkFBKFfAOnM/45+hac5zwBS72MItTXmjPM+vzUiOkm dRlHnSTGKrxr73rtLpHzlgYVqAe7K80sO/XE56rar8BbmYJuWyJ0n3Tsew8PpN4vLnQ5 e97g== X-Gm-Message-State: AODbwcA7x8OP2n6feayjr40rG5mTIVJzMwfEwUlUc5u34aDeR8x6+yhE w9Y5fpxRc/dzVz3r/wM= X-Received: by 10.223.167.76 with SMTP id e12mr649817wrd.177.1495146345994; Thu, 18 May 2017 15:25:45 -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.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 15:25:45 -0700 (PDT) From: Ioan-Adrian Ratiu To: notmuch@notmuchmail.org Subject: [PATCH v2 09/11] notmuch-show: export message filesize Date: Fri, 19 May 2017 01:27:06 +0300 Message-Id: <20170518222708.30032-10-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:25:58 -0000 Signed-off-by: Ioan-Adrian Ratiu --- notmuch-show.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notmuch-show.c b/notmuch-show.c index 7021008e..8229c85c 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -91,6 +91,7 @@ format_message_sprinter (sprinter_t *sp, notmuch_message_t *message) notmuch_tags_t *tags; time_t date; const char *relative_date; + unsigned long filesize; sp->map_key (sp, "id"); sp->string (sp, notmuch_message_get_message_id (message)); @@ -117,6 +118,10 @@ format_message_sprinter (sprinter_t *sp, notmuch_message_t *message) sp->string (sp, notmuch_message_get_filename (message)); } + sp->map_key (sp, "filesize"); + filesize = notmuch_message_get_filesize (message); + sp->unsigned_long (sp, filesize); + sp->map_key (sp, "timestamp"); date = notmuch_message_get_date (message); sp->integer (sp, date); -- 2.13.0