# System-wide personalization for Mutt
######################################
-folder-hook "" set sort=threads
-folder-hook "!" set sort=mailbox-order
-folder-hook "=sent" set sort=mailbox-order
-folder-hook "=spam" set sort=mailbox-order
-folder-hook "=err" set sort=mailbox-order
-folder-hook "=input$" set sort=mailbox-order
+# '!' an '=' are expand only as the very first characters.
+# regexes are processed.
+# '$' must follow alpha or '{' to get interpreted as a variable.
+folder-hook "" set sort=threads
+folder-hook "!$" set sort=mailbox-order;push "*<Tab>"
+folder-hook "=(=|err)" set sort=mailbox-order;push "*<Tab>"
+folder-hook "=(sent|spam|input)" set sort=mailbox-order;push "*"
bind index <Tab> next-new
bind pager <Tab> next-new
bind index <Esc><Tab> previous-new
# FIXME: %D not needed: RFC 2822: 3.3: "converted" can IMO incl. timezone
# but %d will place +0000 for %z and thus brokes the timestamp
set attribution="On %D, %n wrote:"
+unset markers
# Mail command
# Ignore headers
################
-ignore received content- mime-version status x-status message-id sender
+ignore received content- mime-version status x-status sender
ignore references return-path lines precedence x-authentication-warning
ignore list-help list-subscribe list-unsubscribe list-post list-archive
ignore x-mimetrack priority x-priority importance x-mime-autoconverted
-ignore x-accept-language resent-message-id x-sender x-antirelay
+ignore x-accept-language x-sender x-antirelay
ignore x-msmail-priority x-mimeole x-pop3-rcpt delivered-to
# Colors