X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=.muttrc.addons;h=7205f18fe9d6a641808debf2d1006d89f43e6083;hb=HEAD;hp=4f9a813352517a5c79c4efb9967865cc2a076a6d;hpb=6fb48e7f111e58398c03c572098f0c139d0ea505;p=nethome.git diff --git a/.muttrc.addons b/.muttrc.addons index 4f9a813..7205f18 100644 --- a/.muttrc.addons +++ b/.muttrc.addons @@ -20,7 +20,7 @@ bind pager \` previous-unread unset strict_threads # tw=78 is for gq and RFC 2822 section 2.1.1. set editor="vim -c 'set noai' -c 'set ts=8' -c 'set tw=78'" -set send_charset="us-ascii:iso-2022-jp:utf-8" +set send_charset="us-ascii:utf-8" set charset="utf-8" set autoedit set auto_tag @@ -60,13 +60,21 @@ macro index m "l~N|~O\n" macro pager f ":set pager_index_lines=0\n macro pager g ":set pager_index_lines=10\n" set user_agent +set abort_noattach=ask-yes +# https://unix.stackexchange.com/a/42714/296319 +auto_view text/html # view html automatically +alternative_order text/plain text/enriched text/html # save html for last +bind attach view-mailcap # Mail command ############## bind index \ca mail macro index M ":set dsn_return=hdrs\n:set dsn_notify=failure,delay,success\n^a" "DSN compose of a new mail message" macro index m ":unset dsn_return dsn_notify\n^a" "Standard compose of a new mail message" +bind index \cb reply +macro index R ":set dsn_return=hdrs\n:set dsn_notify=failure,delay,success\n^b" "DSN compose of a reply" +macro index r ":unset dsn_return dsn_notify\n^b" "Standard compose of a reply" # quote 'macro' argument to prevent: macro: too many arguments # `spamassassin {--report|--revoke}' calls `sa-learn {--spam|--ham}' automatically. set pipe_split @@ -124,7 +132,7 @@ color status brightyellow blue color tree brightmagenta black # the thread tree in the index menu color tilde brightmagenta black color message brightcyan black -color normal white black +color normal brightwhite black color attachment brightmagenta black color search black green # how to hilite search patterns in the pager color body brightyellow black "(ftp|http)://[^ ]+" # point out URLs