Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

time zone in index's date_format

324 views
Skip to first unread message

Иван

unread,
Aug 24, 2009, 7:35:24 PM8/24/09
to
Hello,

I can't get the name or abbreviation of the time zone in the index,
wether I put %Z or %z in ~/muttrc's date_format.

here's my ~/.muttrc:
set sendmail="/usr/bin/msmtp"
set date_format="%a %d %b.%Y à %X %Z"
set index_format="%Z %C/%m %e %d (%4c) %n %s"
#End

Is it a bug? Is it just Debian? Is it misconfiguration?

ssytem:
Debian GNU/Linux Lenny
Mutt 1.5.18 (2008-05-17)

Иван

unread,
Oct 1, 2009, 6:12:45 PM10/1/09
to
Иван a écrit :

up

Christian Ebert

unread,
Oct 2, 2009, 9:15:07 AM10/2/09
to
* Иван on Thursday, October 01, 2009:
> Иван a écrit :

>> I can't get the name or abbreviation of the time zone in the index,
>> wether I put %Z or %z in ~/muttrc's date_format.
>>
>> here's my ~/.muttrc:
>> set sendmail="/usr/bin/msmtp"
>> set date_format="%a %d %b.%Y à %X %Z"
>> set index_format="%Z %C/%m %e %d (%4c) %n %s"

Doesn't help you but it works fine here with mutt 1.5.20. But I
don't think the version makes a difference in this case.

Did you check that those settings are not overruled by some
folder hook or by another rc file that takes precedence? What
gives

:set ?date_format

and

:set ?index_format

from within mutt?

c
--
Was heißt hier Dogma, ich bin Underdogma!
[ What the hell do you mean dogma, I am underdogma. ]

_F R E E_ _V I D E O S_ --->>> http://www.blacktrash.org/underdogma/

James Michael Fultz

unread,
Oct 2, 2009, 8:29:36 PM10/2/09
to
* Christian Ebert <black...@gmx.net>:

> * Иван on Thursday, October 01, 2009:
>> Иван a écrit :
>>> I can't get the name or abbreviation of the time zone in the index,
>>> wether I put %Z or %z in ~/muttrc's date_format.
>>>
>>> here's my ~/.muttrc:
>>> set sendmail="/usr/bin/msmtp"
>>> set date_format="%a %d %b.%Y à %X %Z"
>>> set index_format="%Z %C/%m %e %d (%4c) %n %s"
>
> Doesn't help you but it works fine here with mutt 1.5.20. But I
> don't think the version makes a difference in this case.

Except that %Z isn't timezone in $index_format -- it is message status
flags. You want one of %(%Z), %{%Z}, or %[%Z] for timezone in
$index_format depending on whether your want sender's timezone, local
timezone, or received local timezone.

--
James Michael Fultz <xy...@sent.as.invalid>
Remove this part when replying ^^^^^^^^

Christian Ebert

unread,
Oct 3, 2009, 7:28:57 AM10/3/09
to
* James Michael Fultz on Saturday, October 03, 2009:

> * Christian Ebert <black...@gmx.net>:
>> * Иван on Thursday, October 01, 2009:
>>> Иван a écrit :
>>>> I can't get the name or abbreviation of the time zone in the index,
>>>> wether I put %Z or %z in ~/muttrc's date_format.
>>>>
>>>> here's my ~/.muttrc:
>>>> set sendmail="/usr/bin/msmtp"
>>>> set date_format="%a %d %b.%Y à %X %Z"
>>>> set index_format="%Z %C/%m %e %d (%4c) %n %s"
>>
>> Doesn't help you but it works fine here with mutt 1.5.20. But I
>> don't think the version makes a difference in this case.
>
> Except that %Z isn't timezone in $index_format -- it is message status
> flags. You want one of %(%Z), %{%Z}, or %[%Z] for timezone in
> $index_format depending on whether your want sender's timezone, local
> timezone, or received local timezone.

You're right, I overlooked the %Z at the beginning and was
fixated on the %d.

c
--
Python Mutt utilities --->> http://www.blacktrash.org/hg/muttils/

0 new messages