unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* notmuch-reply date format
@ 2014-07-14 12:28 Sime Ramov
  2014-07-14 13:04 ` Austin Clements
  0 siblings, 1 reply; 6+ messages in thread
From: Sime Ramov @ 2014-07-14 12:28 UTC (permalink / raw)
  To: notmuch

Hello,

I would like to customize the attribution string in the reply templates.
Something like this, with ISO date:

* Full Name <me@example.net> [2014-07-14 12:30 +0200]:

After the following trivial edit:

diff --git a/notmuch-reply.c b/notmuch-reply.c
index 7c1c809..eaf1eed 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -44,9 +44,9 @@ format_part_reply (mime_node_t *node)
     int i;
     if (node->envelope_file) {
-       printf ("On %s, %s wrote:\n",
-               notmuch_message_get_header (node->envelope_file, "date"),
-               notmuch_message_get_header (node->envelope_file, "from"));
+       printf ("* %s [%s]:\n",
+               notmuch_message_get_header (node->envelope_file, "from"),
+               notmuch_message_get_header (node->envelope_file, "date"));
     } else if (GMIME_IS_MESSAGE (node->part)) {
        GMimeMessage *message = GMIME_MESSAGE (node->part);
        InternetAddressList *recipients;

The (partial) result is this:

* Full Name <me@example.net> [Mon, 14 Jul 2014 12:30:36 +0200]:

Where would be the best place to `strftime` date? I snooped around in
lib/ source but haven't gotten far. Any ideas? Is it a Xapian thing?

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-15 16:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-14 12:28 notmuch-reply date format Sime Ramov
2014-07-14 13:04 ` Austin Clements
2014-07-14 13:25   ` Sime Ramov
2014-07-15  7:35   ` Sime Ramov
2014-07-15 14:14     ` Austin Clements
2014-07-15 16:59       ` Sime Ramov

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).