X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.muttrc.addons;h=8ab616e6114d1b5ccb6c01d85221ccc25e72d4b6;hp=b39c04fc4b30123fe2821dc607e3ae825da79b6c;hb=54566b7e49988b19d09e5072bb134247fef1b3ba;hpb=88f6cc4e1026d93024961c054dc5b6f52ea09e31 diff --git a/.muttrc.addons b/.muttrc.addons index b39c04f..8ab616e 100644 --- a/.muttrc.addons +++ b/.muttrc.addons @@ -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 \` previous-unread +bind pager \` 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,7 +53,9 @@ 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" -macro index S ":unset wait_key\n|formail -s /home/short/bin/razor-report\n:set wait_key\nd" +# 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