Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: X-Sent with Ma Gnus
Date: Fri, 22 Mar 2013 19:42:45 +0900	[thread overview]
Message-ID: <b4mboabk95m.fsf@jpl.org> (raw)
In-Reply-To: <x6620jn6e7@gzp>

Gabor Z. Papp wrote:
> how could I get back the X-Sent 'lapsed header with Ma Gnus?

If you aren't satisfied with

(setq gnus-article-date-headers '(lapsed)) ;; [1]

that produces `Date: lapsed', but really want `X-Sent: lapsed',
try this:

(setq gnus-article-date-headers '(user-defined))
(setq gnus-article-time-format
      (lambda (time)
	(concat "X-Sent: " (article-lapsed-string time))))

Otherwise, if you want X-Sent in addition to Date expressed in
local time, for example, you can do it like:

(setq gnus-article-time-format
      (lambda (time)
	(concat "Date: " (message-make-date time) "\n"
		"X-Sent: " (article-lapsed-string time))))

The only difficulty of this way is to display the original date
a sender made.

[1] (info "(gnus)Customizing Articles")



  reply	other threads:[~2013-03-22 10:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22  9:14 Gabor Z. Papp
2013-03-22 10:42 ` Katsumi Yamaoka [this message]
2013-03-22 11:59   ` Gabor Z. Papp
2013-03-24 23:14     ` Katsumi Yamaoka
2013-05-31  8:32       ` Gabor Z. Papp
2013-05-31 11:43         ` Katsumi Yamaoka
2013-05-31 18:53           ` Gabor Z. Papp
2013-06-04  8:14             ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mboabk95m.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).