Gnus development mailing list
 help / color / mirror / Atom feed
* Adding weekday to Date header
@ 2001-06-20 22:43 Jason R. Mastaler
  2001-06-21 10:38 ` Matthias Wiehl
  2001-06-21 17:19 ` ShengHuo ZHU
  0 siblings, 2 replies; 4+ messages in thread
From: Jason R. Mastaler @ 2001-06-20 22:43 UTC (permalink / raw)


When reading past messages of mine, I'm getting really tired of typing
`cal' to find out what day of the week that was.

The following patch simply adds the weekday to the "Date" header that
gnus generates.  Please consider it for committal.


Index: lisp/message.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/message.el,v
retrieving revision 6.88
diff -u -r6.88 message.el
--- lisp/message.el     2001/06/19 19:44:00     6.88
+++ lisp/message.el     2001/06/20 22:26:55
@@ -3208,6 +3208,7 @@
       (setq sign "-")
       (setq zone (- zone)))
     (concat
+     (format-time-string "%a, " now)
      (format-time-string "%d" now)
      ;; The month name of the %b spec is locale-specific.  Pfff.
      (format " %s "


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

* Re: Adding weekday to Date header
  2001-06-20 22:43 Adding weekday to Date header Jason R. Mastaler
@ 2001-06-21 10:38 ` Matthias Wiehl
  2001-06-21 15:09   ` Jason R. Mastaler
  2001-06-21 17:19 ` ShengHuo ZHU
  1 sibling, 1 reply; 4+ messages in thread
From: Matthias Wiehl @ 2001-06-21 10:38 UTC (permalink / raw)


Jason R. Mastaler <jason-dated-993768225.1e668a@mastaler.com> writes:
> When reading past messages of mine, I'm getting really tired of
> typing `cal' to find out what day of the week that was.

Presuming that you're reading them from within Gnus, and considering
that you probably won't want to regenerate the headers of past
messages, you could as well use something along the lines of:

(setq gnus-article-time-format "%a, %b %d %Y %T %Z")
(setq gnus-treat-date-user-defined 'head)

But of course I agree that applying your patch would be a Good Thing.
-- 
<http://my.gnus.org/>
To boldly frobnicate what no newbie has grokked before.


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

* Re: Adding weekday to Date header
  2001-06-21 10:38 ` Matthias Wiehl
@ 2001-06-21 15:09   ` Jason R. Mastaler
  0 siblings, 0 replies; 4+ messages in thread
From: Jason R. Mastaler @ 2001-06-21 15:09 UTC (permalink / raw)


matthias@my.gnus.org (Matthias Wiehl) writes:

> Presuming that you're reading them from within Gnus

I don't actually.  I store sent messages in MH format and scan through
them later using the command-line tools.

-- 
(TMDA - http://tmda.sourceforge.net/)
(OSI-certified SPAM reduction system)


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

* Re: Adding weekday to Date header
  2001-06-20 22:43 Adding weekday to Date header Jason R. Mastaler
  2001-06-21 10:38 ` Matthias Wiehl
@ 2001-06-21 17:19 ` ShengHuo ZHU
  1 sibling, 0 replies; 4+ messages in thread
From: ShengHuo ZHU @ 2001-06-21 17:19 UTC (permalink / raw)


"Jason R. Mastaler" <jason-dated-993768225.1e668a@mastaler.com> writes:

> When reading past messages of mine, I'm getting really tired of typing
> `cal' to find out what day of the week that was.
> 
> The following patch simply adds the weekday to the "Date" header that
> gnus generates.  Please consider it for committal.
> 
> 
> Index: lisp/message.el
> ===================================================================
> RCS file: /usr/local/cvsroot/gnus/lisp/message.el,v
> retrieving revision 6.88
> diff -u -r6.88 message.el
> --- lisp/message.el     2001/06/19 19:44:00     6.88
>+++ lisp/message.el     2001/06/20 22:26:55
> @@ -3208,6 +3208,7 @@
>        (setq sign "-")
>        (setq zone (- zone)))
>      (concat
>+     (format-time-string "%a, " now)
>       (format-time-string "%d" now)
>       ;; The month name of the %b spec is locale-specific.  Pfff.
>       (format " %s "

Added.

ShengHuo


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

end of thread, other threads:[~2001-06-21 17:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-20 22:43 Adding weekday to Date header Jason R. Mastaler
2001-06-21 10:38 ` Matthias Wiehl
2001-06-21 15:09   ` Jason R. Mastaler
2001-06-21 17:19 ` ShengHuo ZHU

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