From: Nelson Ferreira <nelson.ferreira@bigfoot.com>
Subject: Re: no Date header: shown as Jan 01
Date: Wed, 13 Nov 2002 06:33:00 GMT [thread overview]
Message-ID: <m3adkeq8rn.fsf@tuxie.homelinux.net> (raw)
In-Reply-To: <873cq63wuo.fsf@jidanni.org>
"Dan" == Dan Jacobson <jidanni@dman.ddts.net> writes:
Dan> Gnus is a weakling newsreader in that if a message doesn't
Dan> have a Date header, Gnus will say Jan 01 in the summary, at
Dan> least in the Drafts folder. Stop lying about age... say
Dan> "???" perhaps instead.
Try this in your .gnus
(defun gnus-user-format-function-y (header)
"Show Outlook-style dates in summary line"
(or (ignore-errors
(let ((message-time (date-to-time (mail-header-date header)))
(now (current-time)))
(if (time-less-p now message-time)
"Future"
(let ((message-age
(- (time-to-seconds now) (time-to-seconds message-time))))
(if (< message-age (* 24 3600))
(format-time-string "%R" message-time)
(if (< message-age (* 7 (* 24 3600)))
(format-time-string "%a, %d" message-time)
(if (< message-age (* 365 (* 24 3600)))
(format-time-string "%d-%b" message-time)
(format-time-string "%d-%m-%y" message-time))))))))
"????"))
(setq gnus-summary-line-format "%U%R%z%9uy%I%(%[%4L: %-23,23f%]%) %s\n")
--
Nelson Ferreira
next prev parent reply other threads:[~2002-11-13 6:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-13 4:41 Dan Jacobson
2002-11-13 6:33 ` Nelson Ferreira [this message]
2002-11-13 16:13 ` Eric Eide
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=m3adkeq8rn.fsf@tuxie.homelinux.net \
--to=nelson.ferreira@bigfoot.com \
/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).