Re: Attribution with UTC time? ==> here comes a hack
* michael@xxxxxxxxxxxx [Wed, 28 Jul 2004 17:48:05 +0200]:
> From the silence, it certainly sounds like I'd have to dig into the
> source to accomplish this. I'll see if I get around to it (I have a
> LOT of things to do these days), and if I end up with something
> workable I will submit a patch.
depending on which editor you use and how familiar you are to it, it
may be even easier to achieve your objective from within it.
or, perhaps, via this alternative setup [I feel so hacky... but hey,
this is Unix]:
~/.muttrc:
set attribution="* %n [__DATE_START__%{!%a, %d %b %Y %H:%M:%S
%z}__DATE_END__]:"
set editor=~/bin/utc-editor
~/bin/utc-editor:
#! /bin/sh
MY_DATE="`sed -ne '1s/.*__DATE_START__\([^_]*\)__DATE_END__.*/\1/p' $1`"
MY_UTC_DATE="`date -d \"$MY_DATE\" --utc -R`"
sed -i -e "1s/__DATE_START__[^_]*__DATE_END__/$MY_UTC_DATE/" $1
exec "$EDITOR" $1
--
Adeodato Simó
EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
Man is certainly stark mad; he cannot make a flea, yet he makes gods by the
dozens.
-- Michel de Montaigne