notmuch-reply date format
authorSime Ramov <sramov@pobox.com>
Mon, 14 Jul 2014 12:28:14 +0000 (14:28 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:03:36 +0000 (10:03 -0800)
c1/e2582ed43af550a07262d56d1f6d0a96f149da [new file with mode: 0644]

diff --git a/c1/e2582ed43af550a07262d56d1f6d0a96f149da b/c1/e2582ed43af550a07262d56d1f6d0a96f149da
new file mode 100644 (file)
index 0000000..7a81c33
--- /dev/null
@@ -0,0 +1,100 @@
+Return-Path: <sramov@pobox.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 55B59431FBD\r
+       for <notmuch@notmuchmail.org>; Mon, 14 Jul 2014 05:37:40 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.099\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.099 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_NONE=-0.0001, UNPARSEABLE_RELAY=0.001]\r
+       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 oXgqHatSp8an for <notmuch@notmuchmail.org>;\r
+       Mon, 14 Jul 2014 05:37:34 -0700 (PDT)\r
+X-Greylist: delayed 549 seconds by postgrey-1.32 at olra;\r
+       Mon, 14 Jul 2014 05:37:34 PDT\r
+Received: from smtp.pobox.com (smtp.pobox.com [208.72.237.35])\r
+       by olra.theworths.org (Postfix) with ESMTP id BFF79431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 14 Jul 2014 05:37:34 -0700 (PDT)\r
+Received: from smtp.pobox.com (unknown [127.0.0.1])\r
+       by pb-smtp0.pobox.com (Postfix) with ESMTP id 4DD5A23F35\r
+       for <notmuch@notmuchmail.org>; Mon, 14 Jul 2014 08:28:05 -0400 (EDT)\r
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date\r
+       :message-id:from:subject:to; s=sasl; bh=ifwtpUL9goCkscCGta9z7byY\r
+       HFw=; b=arwQknaSxMKkucYdpQ1qt2rDms89A9Hugk4IwuGp/3KGbmcPAWkqlVU0\r
+       +rSXCDUUgAg7U6KckbmerNUfcFALnKcu3ttnC2wjUKfyDkT/AltLzC54QotkSHyu\r
+       ddcxemRpVd6r31WCmNrgJJxpZlRRp55YfDcrPMtEdCcyVpgQB/I=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:message-id\r
+       :from:subject:to; q=dns; s=sasl; b=qoydZDIuzLlQ9YxvWU+c7Q+Fw6gEN\r
+       kcqfUAzlz0ayEdMWlLyBvoM/+5MB2LxZ3GV2pldUj51RPXjnA5tj8yaN3cKmXutC\r
+       E0l+zwTnZl/ScY+NUYWYLmSuybJTZAelBrP7MPKNvrWeKOJM0OBj3Q0kxn+EMNxA\r
+       RL1prnC+TZAgQQ=\r
+Received: from pb-smtp0.int.icgroup.com (unknown [127.0.0.1])\r
+       by pb-smtp0.pobox.com (Postfix) with ESMTP id 44B8123F34\r
+       for <notmuch@notmuchmail.org>; Mon, 14 Jul 2014 08:28:05 -0400 (EDT)\r
+Received: from ouroboros.ramov.inet (unknown [178.218.165.9])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by pb-smtp0.pobox.com (Postfix) with ESMTPSA id E22FA23F25\r
+       for <notmuch@notmuchmail.org>; Mon, 14 Jul 2014 08:27:58 -0400 (EDT)\r
+Received: from localhost (1000@localhost [local]);\r
+       by localhost (OpenSMTPD) with ESMTPA id c8fc1cbc;\r
+       for <notmuch@notmuchmail.org>; Mon, 14 Jul 2014 14:28:14 +0200 (CEST)\r
+Date: Mon, 14 Jul 2014 14:28:14 +0200 (CEST)\r
+Message-Id: <1722345767858996112.enqueue@ouroboros.ramov.inet>\r
+From: Sime Ramov <sramov@pobox.com>\r
+Subject: notmuch-reply date format\r
+To: notmuch@notmuchmail.org\r
+X-Pobox-Relay-ID:\r
+ 4A5A1490-0B52-11E4-90F5-9903E9FBB39C-45584858!pb-smtp0.pobox.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: Mon, 14 Jul 2014 12:37:40 -0000\r
+\r
+Hello,\r
+\r
+I would like to customize the attribution string in the reply templates.\r
+Something like this, with ISO date:\r
+\r
+* Full Name <me@example.net> [2014-07-14 12:30 +0200]:\r
+\r
+After the following trivial edit:\r
+\r
+diff --git a/notmuch-reply.c b/notmuch-reply.c\r
+index 7c1c809..eaf1eed 100644\r
+--- a/notmuch-reply.c\r
++++ b/notmuch-reply.c\r
+@@ -44,9 +44,9 @@ format_part_reply (mime_node_t *node)\r
+     int i;\r
+     if (node->envelope_file) {\r
+-       printf ("On %s, %s wrote:\n",\r
+-               notmuch_message_get_header (node->envelope_file, "date"),\r
+-               notmuch_message_get_header (node->envelope_file, "from"));\r
++       printf ("* %s [%s]:\n",\r
++               notmuch_message_get_header (node->envelope_file, "from"),\r
++               notmuch_message_get_header (node->envelope_file, "date"));\r
+     } else if (GMIME_IS_MESSAGE (node->part)) {\r
+        GMimeMessage *message = GMIME_MESSAGE (node->part);\r
+        InternetAddressList *recipients;\r
+\r
+The (partial) result is this:\r
+\r
+* Full Name <me@example.net> [Mon, 14 Jul 2014 12:30:36 +0200]:\r
+\r
+Where would be the best place to `strftime` date? I snooped around in\r
+lib/ source but haven't gotten far. Any ideas? Is it a Xapian thing?\r