🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #9318

fancy date formatter based on the age of a message

#9318
From: kyle
Date: Tue, 28 Jan 1992 00:47
35 lines
1916 bytes
k p c writes:
 > (defun my-vm-toggle-summary-format ()
 >   (interactive)
 >   (if (equal my-vm-summary-type 2)
 >       (setq vm-summary-format my-vm-summary-format-type-1
 >             my-vm-summary-type 1)
 >     (setq vm-summary-format my-vm-summary-format-type-2
 >           my-vm-summary-type 2))
 >   (message "type %d" my-vm-summary-type)
 >   (vm-update-summary-and-mode-line))

Add this line just before (vm-update-summary-and-mode-line):

(vm-discard-cached-data)

 > p.s.  this is a nitpicky request, but does kj want to add the
 > following super duper date format to save mode line space?
 > 
 > e.g.  92 jan26 pm       ancient message
 >       jan26 15:31       new message
 >       wed26 15:31       brand new message, within a week old

I think what you really want to know is how old the message is.

My fantasy is to have a summary option that gives you the age of
the message in relative units like "yesterday", "a few minutes
ago", etc. instead of having to deal with timezone translations
and whatnot.

The problem with this is that the summary gets out of date as
time passes and therefore needs to be updated asynchronously.
This in turn means that I'd need to use my interval timer
package, and maybe assign a timer to every message.  This would
undoubtedly make Emacs crash every three minutes, and make me one
of America's Most Wanted. :-)
Technical Details
Message-ID: <9201280047.AA14058@wendy-fate.UU.NET>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm
References: <KPC.92Jan26152551@chaos.arc.nasa.gov>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,df1b868ecf01259d
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1992-01-27 16:56:10 PST
Newsgroups: gnu.emacs.vm.bug
Sender: bug-vm-request@uunet.uu.net
Date: Mon, 27 Jan 92 19:47:32 -0500
From: kyle@wendy-fate.uu.net
Message-ID: <9201280047.AA14058@wendy-fate.UU.NET>
Subject: fancy date formatter based on the age of a message
References: <KPC.92Jan26152551@chaos.arc.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm