Gnus development mailing list
 help / color / mirror / Atom feed
* X-Sent with Ma Gnus
@ 2013-03-22  9:14 Gabor Z. Papp
  2013-03-22 10:42 ` Katsumi Yamaoka
  0 siblings, 1 reply; 8+ messages in thread
From: Gabor Z. Papp @ 2013-03-22  9:14 UTC (permalink / raw)
  To: ding

lo lo,

how could I get back the X-Sent 'lapsed header with Ma Gnus?

I really liked it in No Gnus, and now the multiple Date headers just
looks weird, the combined one is often long as hell. :-)



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

* Re: X-Sent with Ma Gnus
  2013-03-22  9:14 X-Sent with Ma Gnus Gabor Z. Papp
@ 2013-03-22 10:42 ` Katsumi Yamaoka
  2013-03-22 11:59   ` Gabor Z. Papp
  0 siblings, 1 reply; 8+ messages in thread
From: Katsumi Yamaoka @ 2013-03-22 10:42 UTC (permalink / raw)
  To: ding

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")



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

* Re: X-Sent with Ma Gnus
  2013-03-22 10:42 ` Katsumi Yamaoka
@ 2013-03-22 11:59   ` Gabor Z. Papp
  2013-03-24 23:14     ` Katsumi Yamaoka
  0 siblings, 1 reply; 8+ messages in thread
From: Gabor Z. Papp @ 2013-03-22 11:59 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: ding

* Katsumi Yamaoka <yamaoka@jpl.org>:

| 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))))

Yes, I would like this, but...

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

...there is really no way to display the original date?



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

* Re: X-Sent with Ma Gnus
  2013-03-22 11:59   ` Gabor Z. Papp
@ 2013-03-24 23:14     ` Katsumi Yamaoka
  2013-05-31  8:32       ` Gabor Z. Papp
  0 siblings, 1 reply; 8+ messages in thread
From: Katsumi Yamaoka @ 2013-03-24 23:14 UTC (permalink / raw)
  To: ding

Gabor Z. Papp wrote:
> * Katsumi Yamaoka <yamaoka@jpl.org>:
>| The only difficulty of this way is to display the original date
>| a sender made.

> ...there is really no way to display the original date?

Oops, I realized that's easy to do.  Here it is:

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



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

* Re: X-Sent with Ma Gnus
  2013-03-24 23:14     ` Katsumi Yamaoka
@ 2013-05-31  8:32       ` Gabor Z. Papp
  2013-05-31 11:43         ` Katsumi Yamaoka
  0 siblings, 1 reply; 8+ messages in thread
From: Gabor Z. Papp @ 2013-05-31  8:32 UTC (permalink / raw)
  To: Katsumi Yamaoka; +Cc: ding

* Katsumi Yamaoka <yamaoka@jpl.org>:

| > ...there is really no way to display the original date?

| Oops, I realized that's easy to do.  Here it is:

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

Discovered, at forwarded messages <C-c C-f> the X-Sent header show up twice or
more

Look at: http://imagestore.ugbox.net/image/x-sent_d44cbdcc7964b459a389866dc.jpg



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

* Re: X-Sent with Ma Gnus
  2013-05-31  8:32       ` Gabor Z. Papp
@ 2013-05-31 11:43         ` Katsumi Yamaoka
  2013-05-31 18:53           ` Gabor Z. Papp
  0 siblings, 1 reply; 8+ messages in thread
From: Katsumi Yamaoka @ 2013-05-31 11:43 UTC (permalink / raw)
  To: Gabor Z. Papp; +Cc: ding

Gabor Z. Papp wrote:
> * Katsumi Yamaoka <yamaoka@jpl.org>:

>|> ...there is really no way to display the original date?

>| Oops, I realized that's easy to do.  Here it is:

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

> Discovered, at forwarded messages <C-c C-f> the X-Sent header show
> up twice or more

> Look at:
> http://imagestore.ugbox.net/image/x-sent_d44cbdcc7964b459a389866dc.jpg

Confirmed.  Here is a temporary measure:

(defadvice article-transform-date (before delete-X-Sent-header activate)
  "Delete X-Sent header in advance."
  (save-excursion
    (message-remove-header "x-sent")))

One of the causes, two or more X-Sent headers appear, is that Gnus
calls the function that draws a Date header twice or more.  I don't
know why so far.

The other is that Gnus assumes the Date header begins with "Date:";
that is hard-coded.  Because of this, the old X-Sent header (for
the above reason, it is drawn at the first time) won't be deleted.

I'd like to fix it properly, only I have no time for a while.



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

* Re: X-Sent with Ma Gnus
  2013-05-31 11:43         ` Katsumi Yamaoka
@ 2013-05-31 18:53           ` Gabor Z. Papp
  2013-06-04  8:14             ` Katsumi Yamaoka
  0 siblings, 1 reply; 8+ messages in thread
From: Gabor Z. Papp @ 2013-05-31 18:53 UTC (permalink / raw)
  To: ding

* Katsumi Yamaoka <yamaoka@jpl.org>:

| > http://imagestore.ugbox.net/image/x-sent_d44cbdcc7964b459a389866dc.jpg

| Confirmed.  Here is a temporary measure:

| (defadvice article-transform-date (before delete-X-Sent-header activate)
|   "Delete X-Sent header in advance."
|   (save-excursion
|     (message-remove-header "x-sent")))

Seems good, except font coloring lost from the Date header. Thanks.

| I'd like to fix it properly, only I have no time for a while.

Thank you.



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

* Re: X-Sent with Ma Gnus
  2013-05-31 18:53           ` Gabor Z. Papp
@ 2013-06-04  8:14             ` Katsumi Yamaoka
  0 siblings, 0 replies; 8+ messages in thread
From: Katsumi Yamaoka @ 2013-06-04  8:14 UTC (permalink / raw)
  To: gzp; +Cc: ding

Gabor Z. Papp wrote:
> * Katsumi Yamaoka <yamaoka@jpl.org>:
>| I'd like to fix it properly, only I have no time for a while.

Should be fixed now.



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

end of thread, other threads:[~2013-06-04  8:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-22  9:14 X-Sent with Ma Gnus Gabor Z. Papp
2013-03-22 10:42 ` Katsumi Yamaoka
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

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).