Gnus development mailing list
 help / color / mirror / Atom feed
* [qgnus 0.17] bug in gnus-article-date-lapsed
@ 1997-12-03 16:16 Lars Balker Rasmussen
  1997-12-03 20:26 ` Lars Balker Rasmussen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Balker Rasmussen @ 1997-12-03 16:16 UTC (permalink / raw)


I tried putting 

(add-hook 'gnus-article-display-hook 'gnus-article-date-lapsed)
(setq gnus-visible-headers 
      (concat gnus-visible-headers "\\|^X-Sent:"))

in my .gnus, and it is indeed nifty!
(gnus-start-date-timer just bugged me though.)

However, because some systems have their clock in the future (or
elsewhere), bad times are bound to reach you.  This is handled
gracefully for all values except current and unknown times, where an
extra newline is inserted, making the header break in half, causing no
end of mayhem, chaos and tears.

This fixes it (Night of the long patches):

*** gnus-art.el~        Wed Nov 26 17:44:34 1997
--- gnus-art.el Wed Dec  3 17:05:37 1997
***************
*** 1362,1370 ****
           num prev)
        (cond
         ((null real-time)
!       "X-Sent: Unknown\n")
         ((zerop sec)
!       "X-Sent: Now\n")
         (t
        (concat
         "X-Sent: "
--- 1362,1370 ----
           num prev)
        (cond
         ((null real-time)
!       "X-Sent: Unknown")
         ((zerop sec)
!       "X-Sent: Now")
         (t
        (concat
         "X-Sent: "

Cheers,
-- 
Lars Balker Rasmussen, Software Engineer, Mjolner Informatics ApS
lbr@mjolner.dk


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

* Re: [qgnus 0.17] bug in gnus-article-date-lapsed
  1997-12-03 16:16 [qgnus 0.17] bug in gnus-article-date-lapsed Lars Balker Rasmussen
@ 1997-12-03 20:26 ` Lars Balker Rasmussen
  1997-12-04 10:01   ` Andy Eskilsson
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Balker Rasmussen @ 1997-12-03 20:26 UTC (permalink / raw)


Lars Balker Rasmussen <lbr@mjolner.dk> writes:
> (add-hook 'gnus-article-display-hook 'gnus-article-date-lapsed)

Speaking of which:  Would it be possible to retain the Date header,
maybe as X-Date?  Sure, X-Sent is great, but sometimes you'll need a
date as well.  If only for April ;-)
-- 
Lars Balker Rasmussen, Software Engineer, Mjolner Informatics ApS
lbr@mjolner.dk


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

* Re: [qgnus 0.17] bug in gnus-article-date-lapsed
  1997-12-03 20:26 ` Lars Balker Rasmussen
@ 1997-12-04 10:01   ` Andy Eskilsson
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Eskilsson @ 1997-12-04 10:01 UTC (permalink / raw)


/ Lars Balker Rasmussen <lbr@mjolner.dk> wrote:
|
| Speaking of which:  Would it be possible to retain the Date header,
| maybe as X-Date?  Sure, X-Sent is great, but sometimes you'll need a
| date as well.  If only for April ;-)

Or some simple flash thingy sort of:
	X-Note: *Warning* 1st of april, take the contents with a grain
                of salt (as if you would worry about it anyhow)

Hmmm.. integrating calendar into Gnus in some way.. 
	X-Note: This mail was posted on larsi's birthday, score +10k
	X-Note: This article was posted on the day Lincoln were shoot 
                score -100k

sort of.. Naah :-) 

	/andy


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

end of thread, other threads:[~1997-12-04 10:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-03 16:16 [qgnus 0.17] bug in gnus-article-date-lapsed Lars Balker Rasmussen
1997-12-03 20:26 ` Lars Balker Rasmussen
1997-12-04 10:01   ` Andy Eskilsson

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