From dc9a8e668c844b6ebd7bf292ddd360cdf8c1e218 Mon Sep 17 00:00:00 2001 From: pks Date: Tue, 10 Nov 2020 10:39:26 +0100 Subject: overhault mutt config --- by_os/Linux/mutt/.mutt/mailcap | 15 ++++--- by_os/Linux/mutt/.mutt/primary.rc | 13 ------ by_os/Linux/mutt/.mutt/secondary.rc | 13 ------ by_os/Linux/mutt/.mutt/ui.rc | 37 ---------------- mutt/.mutt/aliases | 1 + mutt/.mutt/muttrc | 85 ++++++++++++++++++++----------------- mutt/.mutt/primary.rc | 15 +++++++ mutt/.mutt/secondary.rc | 13 ++++++ mutt/.mutt/ui.rc | 39 +++++++++++++++++ 9 files changed, 123 insertions(+), 108 deletions(-) delete mode 100644 by_os/Linux/mutt/.mutt/primary.rc delete mode 100644 by_os/Linux/mutt/.mutt/secondary.rc delete mode 100644 by_os/Linux/mutt/.mutt/ui.rc create mode 100644 mutt/.mutt/aliases create mode 100644 mutt/.mutt/primary.rc create mode 100644 mutt/.mutt/secondary.rc create mode 100644 mutt/.mutt/ui.rc diff --git a/by_os/Linux/mutt/.mutt/mailcap b/by_os/Linux/mutt/.mutt/mailcap index 779f952..3909e8b 100644 --- a/by_os/Linux/mutt/.mutt/mailcap +++ b/by_os/Linux/mutt/.mutt/mailcap @@ -1,11 +1,12 @@ -text/html; browser -new-tab %s &>/dev/null & sleep 1; test=test -n "$DISPLAY"; needsterminal -text/html; w3m -I %{charset} -O utf-8 -T text/html -dump %s; copiousoutput -text/plain; less %s -application/x-pdf; zathura %s -application/pdf; zathura %s application/octet-stream; zathura %s +application/pdf; zathura %s +application/x-pdf; zathura %s +image/gif; feh --auto-rotate -F %s image/jpeg; feh --auto-rotate -F %s image/pjpeg; feh --auto-rotate -F %s image/png; feh --auto-rotate -F %s -image/gif; feh --auto-rotate -F %s - +text/html; browser %s; test=test -n "$DISPLAY"; needsterminal +#text/html; browser -new-tab %s &>/dev/null; test=test -n "$DISPLAY"; copiousoutput +#text/html; browser -new-tab %s &>/dev/null & sleep 3; test=test -n "$DISPLAY"; needsterminal +text/html; w3m -I %{charset} -O utf-8 -T text/html -dump %s; copiousoutput +text/plain; less %s diff --git a/by_os/Linux/mutt/.mutt/primary.rc b/by_os/Linux/mutt/.mutt/primary.rc deleted file mode 100644 index 8e9387b..0000000 --- a/by_os/Linux/mutt/.mutt/primary.rc +++ /dev/null @@ -1,13 +0,0 @@ -color status blue color231 -color sidebar_divider blue color231 -color sidebar_highlight color201 color231 -color indicator color231 blue - -set from = "p@simianer.de" -set sendmail = "/usr/bin/msmtp -a primary" -set record = "+primary/all" -set postponed = "+primary/drafts" -set spoolfile = "+primary/inbox" - -macro index,pager S "+primary/all" - diff --git a/by_os/Linux/mutt/.mutt/secondary.rc b/by_os/Linux/mutt/.mutt/secondary.rc deleted file mode 100644 index 3501727..0000000 --- a/by_os/Linux/mutt/.mutt/secondary.rc +++ /dev/null @@ -1,13 +0,0 @@ -color status red color231 -color sidebar_divider red color231 -color sidebar_highlight color201 color231 -color indicator color231 red - -set from = "pks@pks.rocks" -set sendmail = "/usr/bin/msmtp -a work" -set record = "+work/all" -set postponed = "+work/drafts" -set spoolfile = "+work/inbox" - -macro index,pager S "+work/all" - diff --git a/by_os/Linux/mutt/.mutt/ui.rc b/by_os/Linux/mutt/.mutt/ui.rc deleted file mode 100644 index 68d7e8e..0000000 --- a/by_os/Linux/mutt/.mutt/ui.rc +++ /dev/null @@ -1,37 +0,0 @@ -# status bar -set status_format = "⎯⎯⎯⎯⎯⎯⎯⎯ %f ⎯⎯%r%m messages %>⎯⎯ " - -# sidebar -set sidebar_divider_char = '⏐' - -# colors -color message color231 magenta -color normal color0 color231 -color error brightcolor15 color196 -color indicator color201 color231 -color status color243 color231 -color hdrdefault color245 color231 -color header color0 color231 "*" -color signature color243 color231 -color body color21 color231 "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" -color body color21 color231 "((https?|ftp)://|www)+[\-\.\;@,/%~_:?&=\#a-zA-Z0-9+]+" -color quoted color243 color231 -color quoted1 color196 color231 -color quoted2 color22 color231 -color quoted3 color130 color231 -color quoted4 color51 color231 -color tilde color243 color231 -color tree color238 color231 -color attachment color196 color231 -color index color201 color231 "~N" -color index color243 color231 "~P" -color index brightcolor221 color231 "~F" -color index brightcolor39 color231 "~T" -color index color196 color231 "~D" -color search color0 color231 -color underline color0 color231 -color bold color0 color231 -color markers color0 color231 -color sidebar_new color0 color231 -color sidebar_flagged color0 color231 - diff --git a/mutt/.mutt/aliases b/mutt/.mutt/aliases new file mode 100644 index 0000000..b5f03fe --- /dev/null +++ b/mutt/.mutt/aliases @@ -0,0 +1 @@ +alias pks p@simianer.de (Patrick Simianer) diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc index 0de9b6d..d1db0d3 100644 --- a/mutt/.mutt/muttrc +++ b/mutt/.mutt/muttrc @@ -1,20 +1,37 @@ -set mbox_type=Maildir -set folder="~/.mail/" -set alias_file = ~/.mutt/alias -set header_cache = ~/.mutt/cache/headers -set mailcap_path = ~/.mutt/mailcap -set signature = ~/.mutt/sig -set tmpdir = /tmp/mutt -set realname = "Patrick Simianer" -set from = "p@simianer.de" -set use_from = yes -set sort = threads -set charset = "utf-8" -set send_charset = "utf-8" -set config_charset = "utf-8" -set read_inc = 1 -set sleep_time = 0 -set rfc2047_parameters = yes +set mbox_type = Maildir +set folder = "~/.mail/" +set alias_file = ~/.mutt/alias +set header_cache = ~/.mutt/cache/headers +set mailcap_path = ~/.mutt/mailcap +set signature = ~/.mutt/sig +set tmpdir = /tmp/pks/mutt +set use_from = yes +set envelope_from = yes +set sort = threads +set charset = "utf-8" +set send_charset = "utf-8" +set config_charset = "utf-8" +set read_inc = 2500 +set sleep_time = 0 +set rfc2047_parameters = yes +set mail_check_stats = yes +set mail_check_stats_interval = 3 +set mail_check = 3 +set edit_headers = no +set reverse_name = yes +set reverse_realname = no +set weed = yes +set fast_reply = yes +set include = yes + +# formats +set date_format = "!%b %d %Y" +set index_format = " %Z %D %-16.16L %s" +folder-hook */inbox 'set date_format="!%b %d"' +folder-hook */all 'set date_format="!%Y-%m-%d"' +set attribution = "On %{%Y-%m-%d}, at %{%H:%M:%S %Z}, %a wrote:" + +# auto view auto_view text/html # bindings @@ -23,7 +40,7 @@ bind index F "flag-message" # macros set wait_key = no macro index,pager G "imapfilter -c ~/.imapfilter/primary.lua &>/dev/null && mbsync primary && notmuch new 2>/dev/null" -macro index,pager H "imapfilter -c ~/.imapfilter/secondary.lua &>/dev/null && mbsync secondary && notmuch new 2>/dev/null" +#macro index,pager H "imapfilter -c ~/.imapfilter/secondary.lua &>/dev/null && mbsync secondary && notmuch new 2>/dev/null" macro index,pager J "mbsync -a && notmuch new 2>/dev/null" macro index m "T~N;WNT~O;WO\CT~T" "mark all messages read" macro index c "?" "open a different folder" @@ -37,23 +54,23 @@ bind editor complete-query # headers ignore * unignore from date subject to cc -hdr_order from to cc date subject +unhdr_order * +hdr_order from: to: cc: bcc: date: subject: +alternative_order text/plain text/enriched text/html # primary mailboxes -mailboxes =primary/inbox =primary/drafts =primary/all +mailboxes =primary/inbox =primary/drafts =primary/lists =primary/all + # secondary mailboxes -mailboxes +#mailboxes " " +#mailboxes =secondary/inbox =secondary/drafts =secondary/all # folder hooks folder-hook primary/* source ~/.mutt/primary.rc -folder-hook secondary/* source ~/.mutt/secondary.rc -folder-hook . 'set read_inc=1' -folder-hook primary/all 'set read_inc=1000' -folder-hook secondary/all 'set read_inc=1000' -folder-hook secondary/lists 'set read_inc=1000' +#folder-hook secondary/* source ~/.mutt/secondary.rc # notmuch -set my_notmuchfs_folder="~/.notmuchfs" +set my_notmuchfs_folder="/tmp/pks/notmuchfs" macro index "," "prompt_mkdir $my_notmuchfs_folder~/.mail/current_search" "Search" # status bar @@ -69,19 +86,12 @@ bind index,pager sidebar-next bind index,pager sidebar-prev bind index,pager sidebar-open set sidebar_visible = yes -set sidebar_width = 23 +set sidebar_width = 13 set sidebar_format = '%B%> %!%?N? %N? ' -set sidebar_short_path = no +set sidebar_short_path = yes set sidebar_folder_indent = yes set sidebar_indent_string = ' ' -set mail_check_stats = yes -set mail_check_stats_interval = 3 set sidebar_new_mail_only = no -set mail_check = 3 -set edit_headers = no -set reverse_name = yes -set reverse_realname = no -alternates ^.*@simianer.de$ ^.*@pks.rocks$ ^.*@fru.gal$ # pager set pager_index_lines = 20 @@ -95,6 +105,5 @@ unset help # ui source ~/.mutt/ui.rc -# default primary +# default is primary source ~/.mutt/primary.rc - diff --git a/mutt/.mutt/primary.rc b/mutt/.mutt/primary.rc new file mode 100644 index 0000000..27f973c --- /dev/null +++ b/mutt/.mutt/primary.rc @@ -0,0 +1,15 @@ +color status blue color231 +color sidebar_divider blue color231 +color sidebar_highlight color201 color231 +color indicator color231 blue + +set realname = "Patrick Simianer" +set from = "p@simianer.de" +set sendmail = "/usr/bin/msmtp -a primary" +set record = "+primary/all" +set postponed = "+primary/drafts" +set spoolfile = "+primary/inbox" + +alternates ^p@simianer.de$ ^patrick@simianer.de$ + +macro index,pager S "+primary/all" diff --git a/mutt/.mutt/secondary.rc b/mutt/.mutt/secondary.rc new file mode 100644 index 0000000..cc237ba --- /dev/null +++ b/mutt/.mutt/secondary.rc @@ -0,0 +1,13 @@ +color status red color231 +color sidebar_divider red color231 +color sidebar_highlight color201 color231 +color indicator color231 red + +set realname = "" +set from = "" +set sendmail = "/usr/bin/msmtp -a secondary" +set record = "+secondary/all" +set postponed = "+secondary/drafts" +set spoolfile = "+secondary/inbox" + +macro index,pager S "+work/all" diff --git a/mutt/.mutt/ui.rc b/mutt/.mutt/ui.rc new file mode 100644 index 0000000..9ca9ca9 --- /dev/null +++ b/mutt/.mutt/ui.rc @@ -0,0 +1,39 @@ +# status bar +set status_format = "⎯⎯⎯⎯┤%f: %m messages ├%>⎯ " +#set status_format = "———— %f ⎯⎯%r%m messages %>—— " + +# sidebar +set sidebar_divider_char = '│' +#set sidebar_divider_char = '┆' + + +# colors +color message color231 magenta +color normal color0 color231 +color error brightcolor15 color196 +color indicator color201 color231 +color status color243 color231 +color hdrdefault color245 color231 +color header color0 color231 "*" +color signature color243 color231 +color body color21 color231 "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" +color body color21 color231 "((https?|ftp)://|www)+[\-\.\;@,/%~_:?&=\#a-zA-Z0-9+]+" +color quoted color243 color231 +color quoted1 color196 color231 +color quoted2 color22 color231 +color quoted3 color130 color231 +color quoted4 color51 color231 +color tilde color243 color231 +color tree color238 color231 +color attachment color196 color231 +color index color201 color231 "~N" +color index color243 color231 "~P" +color index brightcolor221 color231 "~F" +color index brightcolor39 color231 "~T" +color index color196 color231 "~D" +color search color0 color231 +color underline color0 color231 +color bold color0 color231 +color markers color0 color231 +color sidebar_new color0 color231 +color sidebar_flagged color0 color231 -- cgit v1.2.3