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

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