Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'd like to see the mail's date in the list that appears when I start mutt.

How can I do that?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

You can set the index_format variable to include all manner of different details about each message. In particular, you probably want the %d format string, which inserts the date formatted according to the value of date_format, or one of the other date format strings, such as %{fmt}, %[fmt], etc. As an example, here is my default index_format setting:

set 'index_format="%4C %Z %{%b %d} %-15.15L (%4l) %s"'

Take a look at the documentation for more details on what you can configure, and what the extended date format strings represent.

share|improve this answer
4  
Note that if you used %d (sender's timezone) or %D (your timezone) in index_format, don't enclose it in the curly brackets. For example, if in .muttrc, you have set date_format="%d %b %R", you need to use set index_format="%4C %Z %D %-15.15L (%4l) %s" rather than "%4C %Z %{%D} %-15.15L (%4l) %s". Otherwise you'll get the strftime interpretation of %d or %D. As the man page for strftime says: "Yecch." (-: –  Steve HHH Jan 25 '13 at 5:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.