From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/13129 Path: main.gmane.org!not-for-mail From: Lars Balker Rasmussen Newsgroups: gmane.emacs.gnus.general Subject: [qgnus 0.17] bug in gnus-article-date-lapsed Date: 03 Dec 1997 17:16:20 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <0flny21jxn.fsf@odin.mjolner.dk> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035152549 7623 80.91.224.250 (20 Oct 2002 22:22:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:22:29 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id JAA29157 for ; Wed, 3 Dec 1997 09:30:52 -0800 Original-Received: from sina.hpc.uh.edu (root@Sina.HPC.UH.EDU [129.7.3.5]) by xemacs.org (8.8.5/8.8.5) with ESMTP id LAA10654 for ; Wed, 3 Dec 1997 11:33:38 -0600 (CST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id LAH26895; Wed, 3 Dec 1997 11:20:08 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 03 Dec 1997 11:19:46 -0600 (CST) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id LAA26870 for ; Wed, 3 Dec 1997 11:19:39 -0600 (CST) Original-Received: (qmail 27023 invoked by uid 504); 3 Dec 1997 17:19:27 -0000 Original-Received: (qmail 27020 invoked from network); 3 Dec 1997 17:19:26 -0000 Original-Received: from odin.mjolner.dk (130.225.8.219) by claymore.vcinet.com with SMTP; 3 Dec 1997 17:19:26 -0000 Original-Received: (from lbr@localhost) by odin.mjolner.dk (8.7.6/8.7.3) id RAA12880; Wed, 3 Dec 1997 17:16:20 +0100 (MET) Original-To: ding@gnus.org Original-Lines: 45 X-Mailer: Gnus v5.5/Emacs 20.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:13129 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:13129 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