Lua primitives: index_format()
A simple format-string is used to control how message-lists are displayed, this format string is fetched/updated via the index_format() function.
The value can be set or retrieved like so:
-- Set the string index_format( "[$FLAGS] - $SUBJECT" ); -- Get the setting, and display it msg( index_format() );
The format string clearly makes use of variables like "$SUBJECT" to display particular pieces of information about the message. The following table lists possible values:
|$DATE||The date the message was sent/received.|
|$DAY||The day of the month the message was sent/received.|
|$FLAGS||The Maildir flags the given message possesses.|
|$FROM||The sender of the message.|
|$MONTH||The month the message was sent/received.|
|$MON||The abbreviated version of the month the message was sent/received.|
|$SUBJECT||The subject of the message.|
|$TO||The recipient of the message.|
|$YEAR||The year the message was sent/received.|
This function has been available since version 0.07.