Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Eric Eide <eeide@cs.utah.edu>
Subject: Re: no Date header: shown as Jan 01
Date: Wed, 13 Nov 2002 09:13:27 -0700 (MST)	[thread overview]
Message-ID: <ywr4ralzbvc.fsf@ioka.flux.utah.edu> (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 have a
	Dan> Date header, Gnus will say Jan 01 in the summary, at least in the
	Dan> Drafts folder.  Stop lying about age... say "???" perhaps instead.

I've seen this problem as well, and I agree it's confusing.  An UNTESTED fix:

(defun gnus-dd-mmm (messy-date)
  "Return a string like DD-MMM from a big messy string."
  (condition-case ()
      (format-time-string "%d-%b" (date-to-time messy-date))
    (error "  -   ")))

The version of this function in Gnus 5.8.7 calls `safe-date-to-time', which
returns a zero-date if the string is unparseable.

Insinuating this function into your setup is left as an exercise for the
reader.

Eric.

-- 
-------------------------------------------------------------------------------
Eric Eide <eeide@cs.utah.edu>  .         University of Utah School of Computing
http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX


      parent reply	other threads:[~2002-11-13 16:13 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
2002-11-13 16:13 ` Eric Eide [this message]

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=ywr4ralzbvc.fsf@ioka.flux.utah.edu \
    --to=eeide@cs.utah.edu \
    /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).