Article View: comp.mail.mush
Article #1019Re: Sort by Date - time zones
From: Barton E. Schaefer
Date: Mon, 05 Feb 1990 18:25
Date: Mon, 05 Feb 1990 18:25
57 lines
3016 bytes
3016 bytes
In article <3257@taux01.UUCP> crehta@taux01.nsc.com (Ran Ever-Hadani) writes:
} How hard should it be to fix the folder sort-by-date to take
} time zones into consideration?
Mush currently does absolutely *nothing* with time zones -- it doesn't
even store them in its internal representation of the date. I've begun
working on some code for timezones but it isn't anywhere near finished.
The main problem, after retrieving the timezone from any of the two dozen
different places it can appear in different date formats, is parsing all
the different symbolic forms. That's what I've been working on. Once
that's out of the way, it's only necessary to figure out how to munge
mush's internal date format to canonicalize the times. Then the sort
function can finally get fixed.
} Since there is no cut-and-paste function in mush to move messages
} around in a folder (or is there?) I usually end up sorting the
} messages manually with an editor. I am not too happy about that.
Of course you can cut and paste. It just isn't obvious. :-} No there's
no "cut"/"paste" command pair, though there will be eventually. But you
can accomplish the same thing:
cmd cut 'save -f \!* /tmp/cut$$ | d'
cmd paste 'save \!* -$ {`:d`} /tmp/cut$$ | d; Paste'
cmd Paste 'merge -N /tmp/cut$$'
Usage is
cut [msg-list] (cuts current message by default)
paste number (you *must* give a number)
Paste (appends at the end of the folder)
The cut message(s) are pasted above the message whose number is given.
This is a bit sloppy because it uses a temp file to do the rearranging.
You can also move messages "locally" by piping a range into sort:
3-5 | sort d
sorts only messages 3-5 by date. The sort must be contiguous, though --
you *can't* use "1 4 12 | sort". If you can figure out a "pick" search
pattern that selects by GMT hours or somthing, you can use the cmds above
and do
pick time-you-want | cut
Paste | sort d # note capital P
Or you can figure out the message numbers yourself and use sort criteria
other than the date to cause the local rearrangements you want. Sort by
status is handy here; use the "flags" command to change the status of the
messages you want rearranged, sort by status, then restore the original
status with "flags" again.
--
Bart Schaefer "February. The hangnail on the big toe of the year."
-- Duffy
schaefer@cse.ogi.edu (used to be cse.ogc.edu)
Technical Details
Message-ID:
<7129@ogicse.ogc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!rutgers!apple!snorkelwacker!mintaka!ogicse!schaeferReferences:
<3257@taux01.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!rutgers!apple!snorkelwacker!mintaka!ogicse!schaefer From: schaefer@ogicse.ogc.edu (Barton E. Schaefer) Newsgroups: comp.mail.mush Subject: Re: Sort by Date - time zones Message-ID: <7129@ogicse.ogc.edu> Date: 5 Feb 90 18:25:27 GMT References: <3257@taux01.UUCP> Reply-To: schaefer@ogicse.UUCP (Barton E. Schaefer) Organization: Oregon Graduate Institute (formerly OGC), Beaverton, OR Lines: 57