# System-wide personalization for Mutt
######################################
-set sort=threads
+folder-hook "" set sort=threads
+# '!' 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=mailbox-order;push "*"
+folder-hook "=(=|sent|spam|err|input)" set sort=mailbox-order;push "*"
+bind index <Tab> next-new
+bind pager <Tab> next-new
+bind index <Esc><Tab> previous-new
+bind pager <Esc><Tab> previous-new
+bind index \` next-unread
+bind pager \` next-unread
+bind index <Esc>\` previous-unread
+bind pager <Esc>\` previous-unread
unset strict_threads
set editor="vim -c 'set noai' -c 'set ts=8'"
-set send_charset="us-ascii:iso-8859-2:utf-8"
-set charset="iso-8859-2"
+set send_charset="us-ascii:iso-2022-jp:utf-8"
+set charset="utf-8"
set autoedit
set auto_tag
set history=100
set include=yes
unset metoo
set mime_fwd
+set forward_format="Fwd: [%a] %s"
set move=no
set pager_context=1
set pager_stop
unset confirmcreate
set reply_to=ask-yes
set thorough_search
+set abort_unmodified=no
+set date_format="!%a, %d %b %Y %H:%M:%S %z" # RFC 2822: 3.3.
+# 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
bind index \ca mail
macro index M ":my_hdr X-Priority: 1\n:my_hdr Importance: high\n:set dsn_return=hdrs\n:set dsn_notify=failure,delay,success\n^a" "DSN and Priority-1 classed compose of a new mail message"
macro index m ":unmy_hdr X-Priority Importance\n:unset dsn_return dsn_notify\n^a" "Standard compose of a new mail message"
+# quote 'macro' argument to prevent: macro: too many arguments
+folder-hook "" "macro index S \":unset wait_key\n|spamassassin --report\n:set wait_key\ns=spamo-mutt\n\""
+folder-hook "=spam" "macro index S \":unset wait_key\n|spamassassin --report\n:set wait_key\nWN\ct~T\n\""
+folder-hook "" "macro pager S \":unset wait_key\n|spamassassin --report\n:set wait_key\ns=spamo-mutt\n\""
+folder-hook "=spam" "macro pager S \":unset wait_key\n|spamassassin --report\n:set wait_key\n\""
+folder-hook "" "macro index H \":unset wait_key\n|spamassassin --revoke\n:set wait_key\nWN\ct~T\n\""
+folder-hook "" "macro pager H \":unset wait_key\n|spamassassin --revoke\n:set wait_key\n\""
+macro editor \ew "^a [^e]^a"
# GPG
#####
-source /home/short/.muttrc-gpg.rc
+source /home/lace/.muttrc-gpg.rc
unset pgp_show_unusable
set pgp_replyencrypt
set pgp_replysignencrypted