+many anonymous CVS servers
[nethome.git] / .muttrc.addons
index 2d4cd6a..8ab616e 100644 (file)
@@ -1,9 +1,18 @@
 # System-wide personalization for Mutt
 ######################################
 
-set sort=threads
+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
+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 editor="vim -c 'set noai' -c 'set ts=8' -c 'set fileencoding=iso-8859-2' -c 'set fileencodings=iso-8859-2'"
 set send_charset="us-ascii:iso-8859-2:utf-8"
 set charset="iso-8859-2"
 set autoedit
@@ -12,6 +21,7 @@ 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
@@ -31,6 +41,11 @@ unset confirmappend
 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:"
 
 
 # Mail command
@@ -38,6 +53,10 @@ set thorough_search
 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:set pipe_split\n|/home/short/bin/razor-report\n:unset pipe_split\n:set wait_key\ns=spamo-mutt\n\""
+folder-hook "=spam" "macro index S \":unset wait_key\n:set pipe_split\n|/home/short/bin/razor-report\n:unset pipe_split\n:set wait_key\nWN\ct~T\n\""
+macro editor \ew "^a  [WAS: ^e]^a"
 
 # GPG
 #####