Re: Setting timezone to local timezone
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, January 30 at 05:39 PM, quoth Stuart McKim:
>> You could change that yourself by creating a display filter. For
>> example:
>>
>> #!/bin/bash
>> # save the message to a file
>> cat - > /tmp/timezoneconvert.$$
>> # extract the date header
>> thedate=$( awk '/^Date: / && !i { $1="" ; print $0 ; i=1}' )
>> # convert to the current timezone (defined by TZ)
>> thedate=$( date -d "$thedate" )
>> # output the modified message
>> awk "{ if (/^Date: /) print \"Date: $thedate\"; else print $0; }" \
>> </tmp/timezoneconvert.$$
>> # clean up
>> rm /tmp/timezoneconvert.$$
>
> I hadn't planned on doing this originally, but it is neat. How would
> this script be run?
Say that script is named ~/bin/convertdate.sh, you would then add the
following to your muttrc:
set display_filter=$HOME/bin/convertdate.sh
~Kyle
- --
A man cannot be held responsible for what his mind does while he's
asleep.
-- Jean Luc Picard
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFFwLr8BkIOoMqOI14RAnM9AKC6S3yjJvjLipL8FZa9Kt/XCmopyACg3Ivi
iGHe3AoYeI3shx3Nyd4vV3g=
=ddFF
-----END PGP SIGNATURE-----