From 27eb37a8b8dbdd6ff3fbfa334ec7ea43e24bd08a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 12 Jan 2015 18:13:39 -0500 Subject: [PATCH] mutt: update settings --- .config/mutt/bindings.rc | 3 +- .config/mutt/formatting.rc | 2 +- .config/mutt/gpg.rc | 2 +- .config/mutt/lists.rc | 9 ++- .config/mutt/mail.rc | 4 +- .config/mutt/main.rc | 6 +- .config/mutt/sidebar.rc | 11 ++- .config/mutt/theme.rc | 144 ++++++++++++++++++--------------- .config/mutt/theme.screen.rc | 0 .config/mutt/theme/256color.rc | 117 ++++++++++++++------------- 10 files changed, 160 insertions(+), 138 deletions(-) delete mode 100644 .config/mutt/theme.screen.rc diff --git a/.config/mutt/bindings.rc b/.config/mutt/bindings.rc index a5a8cdb..b8fc2db 100644 --- a/.config/mutt/bindings.rc +++ b/.config/mutt/bindings.rc @@ -8,7 +8,8 @@ bind index previous-line bind index next-line bind index display-message bind index collapse-thread -macro index G 'getmail -q -g ~/.config/getmail -r gmail.rc' +bind index next-unread +macro index G '~/.config/getmail/gmail' bind pager previous-line bind pager next-line diff --git a/.config/mutt/formatting.rc b/.config/mutt/formatting.rc index 0d93baa..6a38ba0 100644 --- a/.config/mutt/formatting.rc +++ b/.config/mutt/formatting.rc @@ -42,7 +42,7 @@ set date_format = "%d %b %Y %H:%M" #set folder_format="%F %d %8s %N %f" # file browser menu # http://www.mutt.org/doc/devel/manual.html#index-format -set index_format = "%5C %Z %?M?»& ?%s %* %B %-20.20n %D" +set index_format = "%4C %Z %?M?»& ?%s %* %B %-20.20n %D" #set pager_format="-%Z- %C/%m [%[%H:%M]] %-17.17n %s" diff --git a/.config/mutt/gpg.rc b/.config/mutt/gpg.rc index f93e3d0..0b0ef16 100644 --- a/.config/mutt/gpg.rc +++ b/.config/mutt/gpg.rc @@ -14,7 +14,7 @@ set pgp_use_gpg_agent = yes set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" # verify a pgp/mime signature -set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" +set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f 2>&1 | grep -E -v '^gpg:.+(aka|Signature made)'" # decrypt a pgp/mime attachment set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" diff --git a/.config/mutt/lists.rc b/.config/mutt/lists.rc index b90ce78..edec69b 100644 --- a/.config/mutt/lists.rc +++ b/.config/mutt/lists.rc @@ -8,7 +8,10 @@ subscribe -group oss \ "@lists\.[a-z0-9.]+\.org$" \ "^zlib-devel@madler\.net$" \ "^dropbear@ucc\.asn\.au$" \ - "^gmp-bugs@gmplib\.org$" \ - "^file@mx\.gw\.com$" -subscribe -group gnu "(^bug-.*|-(devel|patches))@(non)?gnu\.org$" "@debbugs\.gnu\.org$" "^(auto(conf|make)|coreutils|libtool)@gnu\.org$" + "^gmp-(bugs|discuss)@gmplib\.org$" \ + "^file@mx\.gw\.com$" \ + "^LINUX-390@VM\.MARIST\.EDU$" \ + "^procps@freelists.org$" \ + "@lists\.denx\.de$" +subscribe -group gnu "(^bug-.*|-(dev(el)?|patches))@(non)?gnu\.org$" "@debbugs\.gnu\.org$" "^(auto(conf|make)|coreutils|libtool)@gnu\.org$" subscribe -group spec "-l@opengroup\.org$" diff --git a/.config/mutt/mail.rc b/.config/mutt/mail.rc index 904c427..52e18ac 100644 --- a/.config/mutt/mail.rc +++ b/.config/mutt/mail.rc @@ -10,6 +10,6 @@ set message_cachedir = ~/.cache/mutt/message mailboxes `find ~/.mail/ \ -regextype posix-extended -type d \ - '(' -regex '.*/(cur|new|tmp)$' -o -regex '.*/\.mail/(outbox|templates|trash|\.inbox\.directory)$' -prune ')' \ - -name cur -printf '"%h" ' | sort` + '(' -regex '.*/(cur|new|tmp)$' -o -regex '.*/\.mail/(drafts|outbox|templates|\.inbox\.directory)$' -prune ')' \ + -name cur -printf '"%h" ' 2>/dev/null | sort` unmailboxes ~/.mail diff --git a/.config/mutt/main.rc b/.config/mutt/main.rc index a8aae54..3c60070 100644 --- a/.config/mutt/main.rc +++ b/.config/mutt/main.rc @@ -14,7 +14,7 @@ set sleep_time = 0 set time_inc = 500 set user_agent = no -folder-hook . 'push ' +folder-hook . 'push ; push ' set collapse_flagged = no set collapse_unread = no set sort = threads @@ -32,9 +32,9 @@ set fast_reply = yes set include = yes ignore * -unignore from date subject to cc x-mailing-list list-id +unignore from date subject to cc x-mailing-list list-id message-id unhdr_order * -hdr_order subject from to cc date list-id x-mailing-list +hdr_order subject from to cc date list-id x-mailing-list message-id source ~/.config/mutt/bindings.rc source ~/.config/mutt/formatting.rc diff --git a/.config/mutt/sidebar.rc b/.config/mutt/sidebar.rc index 051acb8..a3a03a0 100644 --- a/.config/mutt/sidebar.rc +++ b/.config/mutt/sidebar.rc @@ -1,8 +1,11 @@ -set sidebar_width = 50 -set sidebar_visible = no -set sidebar_delim = '|' +set sidebar_delim = '│' +set sidebar_folderindent = yes +set sidebar_format = '%B %* %N' # %F %S' +set sidebar_indentstr = ' ' +set sidebar_shortpath = yes set sidebar_sort = yes -#set sidebar_format = '%B %N' +set sidebar_visible = yes +set sidebar_width = 30 color sidebar_new brightred default diff --git a/.config/mutt/theme.rc b/.config/mutt/theme.rc index b0b5804..8698ea2 100644 --- a/.config/mutt/theme.rc +++ b/.config/mutt/theme.rc @@ -1,81 +1,95 @@ -# Status flags -# D message is deleted (is marked for deletion) -# d message have attachments marked for deletion -# K contains a PGP public key -# N message is new -# O message is old -# P message is PGP encrypted -# r message has been replied to -# S message is PGP signed, and the signature is succesfully verified -# s message is PGP signed -# F message is flagged (!) -# * message is tagged +# Default color settings: +# http://www.mutt.org/doc/devel/manual.html#color +# Only basic colors here. -# Colors for the message index -color index brightred black ~N -color index brightred black ~O -color index brightyellow black ~F -color index black cyan ~T -color index cyan black ~D +# +# Index status flags: +# http://www.mutt.org/doc/devel/manual.html#patterns +# +color index brightred default ~U # unread (covers ~F ~O) +color index brightyellow default ~F # flagged +color index brightcyan default ~T # tagged +color index cyan default ~D # deleted + +# +# Various objects +# + +color indicator black white +color tree brightblue default + +# +# Default color definitions +# + +color hdrdefault green default +color signature magenta default +color attachment magenta default +color error brightblack red + +#color message white black +#color search brightwhite magenta +#color status brightyellow blue +#color normal white black +#color tilde green black +#color bold brightyellow black +#color underline magenta black +#color markers brightcyan black + +# # Highlights inside the body of a message. +# # URLs -color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*" -color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" -mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*" -mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" +#color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*" +#color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" +#mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*" +#mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" # email addresses -color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" +#color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" #mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" -# header -color header green black "^from:" -color header green black "^to:" -color header green black "^cc:" -color header green black "^date:" -color header yellow black "^newsgroups:" -color header yellow black "^reply-to:" -color header brightcyan black "^subject:" -color header red black "^x-spam-rule:" -color header green black "^x-mailer:" -color header yellow black "^message-id:" -color header yellow black "^Organization:" -color header yellow black "^Organisation:" -color header yellow black "^User-Agent:" -color header yellow black "^message-id: .*pine" -color header yellow black "^X-Message-Flag:" -color header yellow black "^X-Spam-Status:" -color header yellow black "^X-SpamProbe:" -color header red black "^X-SpamProbe: SPAM" +# +# Headers +# +#color header green black "^from:" +#color header green black "^to:" +#color header green black "^cc:" +#color header green black "^date:" +#color header yellow black "^newsgroups:" +#color header yellow black "^reply-to:" +color header brightgreen default "^subject:" +#color header red black "^x-spam-rule:" +#color header green black "^x-mailer:" +#color header yellow black "^message-id:" +#color header yellow black "^Organization:" +#color header yellow black "^Organisation:" +#color header yellow black "^User-Agent:" +#color header yellow black "^message-id: .*pine" +#color header yellow black "^X-Message-Flag:" +#color header yellow black "^X-Spam-Status:" +#color header yellow black "^X-SpamProbe:" +#color header red black "^X-SpamProbe: SPAM" + +# # Coloring quoted text - coloring the first 7 levels: -color quoted cyan black -color quoted1 yellow black -color quoted2 red black -color quoted3 green black -color quoted4 cyan black -color quoted5 yellow black -color quoted6 red black -color quoted7 green black +# +color quoted cyan default +color quoted1 yellow default +color quoted2 red default +color quoted3 green default +color quoted4 cyan default +color quoted5 yellow default +color quoted6 red default +color quoted7 green default -# Default color definitions -#color hdrdefault white green -color signature brightmagenta black -color indicator black white -color attachment black green -color error red black -color message white black -color search brightwhite magenta -color status brightyellow blue -color tree brightblue black -color normal white black -color tilde green black -color bold brightyellow black -#color underline magenta black -color markers brightcyan black +# # Colour definitions when on a mono screen +# + mono bold bold mono underline underline mono indicator reverse diff --git a/.config/mutt/theme.screen.rc b/.config/mutt/theme.screen.rc deleted file mode 100644 index e69de29..0000000 diff --git a/.config/mutt/theme/256color.rc b/.config/mutt/theme/256color.rc index 4ddd0f9..aaf751c 100644 --- a/.config/mutt/theme/256color.rc +++ b/.config/mutt/theme/256color.rc @@ -1,73 +1,74 @@ # For colorN syntax use the ~scripts/term-colortest to find colors -color normal color250 color232 # normal text -color indicator color232 color215 # color bar over currently selected message -color tree color63 color232 # thread arrows -color status brightcolor245 color236 # status line -color message color245 color232 # info messages -color error color231 color196 # errors -color signature color240 color232 # signature -color attachment color61 color232 # MIME attachments -color search brightcolor226 color196 # search matches -color tilde color63 color232 # ~ at bottom of messages -color markers color37 color232 # + at beginning of wrapped lines -color hdrdefault color240 color232 # default header lines -color bold brightcolor235 color232 # hilighting bold patterns in body -color underline brightcolor240 color232 # hilighting underlined patterns in body - +#color normal color250 color232 # normal text +#color indicator color232 color215 # color bar over currently selected message +#color tree color63 color232 # thread arrows +#color status brightcolor245 color236 # status line +#color message color245 color232 # info messages +#color error color231 color196 # errors +#color signature color240 color232 # signature +#color attachment color61 color232 # MIME attachments +#color search brightcolor226 color196 # search matches +#color tilde color63 color232 # ~ at bottom of messages +#color markers color37 color232 # + at beginning of wrapped lines +#color hdrdefault color240 color232 # default header lines +#color bold brightcolor235 color232 # hilighting bold patterns in body +#color underline brightcolor240 color232 # hilighting underlined patterns in body +# # Quote colors -color quoted color130 color232 -color quoted1 color25 color232 -color quoted2 color171 color232 -color quoted3 color38 color232 -color quoted4 color100 color232 -color quoted5 color53 color232 -color quoted6 color29 color232 -color quoted7 color127 color232 -color quoted8 color59 color232 -color quoted9 color167 color232 - +#color quoted color130 color232 +#color quoted1 color25 color232 +#color quoted2 color171 color232 +#color quoted3 color38 color232 +#color quoted4 color100 color232 +#color quoted5 color53 color232 +#color quoted6 color29 color232 +#color quoted7 color127 color232 +#color quoted8 color59 color232 +#color quoted9 color167 color232 +# # Color for the attribution-line -color body color130 color232 "^[^>].*(wrote|writes|said|say(s)?).*:" -color body color25 color232 "^>[^>].*(wrote|writes|said|say(s)?).*:" -color body color171 color232 "^>[ ]?>[^>].*(wrote|writes|said|say(s)?).*:" -color body color38 color232 "^(>[ ]?){2}>[^>].*(wrote|writes|said|say(s)?).*:" -color body color100 color232 "^(>[ ]?){3}>[^>].*(wrote|writes|said|say(s)?).*:" -color body color89 color232 "^(>[ ]?){4}>[^>].*(wrote|writes|said|say(s)?).*:" -color body color29 color232 "^(>[ ]?){5}>[^>].*(wrote|writes|said|say(s)?).*:" -color body color127 color232 "^(>[ ]?){6}>[^>].*(wrote|writes|said|say(s)?).*:" -color body color59 color232 "^(>[ ]?){7}>[^>].*(wrote|writes|said|say(s)?).*:" -color body color167 color232 "^(>[ ]?){8}>[^>].*(wrote|writes|said|say(s)?).*:" - +#color body color130 color232 "^[^>].*(wrote|writes|said|say(s)?).*:" +#color body color25 color232 "^>[^>].*(wrote|writes|said|say(s)?).*:" +#color body color171 color232 "^>[ ]?>[^>].*(wrote|writes|said|say(s)?).*:" +#color body color38 color232 "^(>[ ]?){2}>[^>].*(wrote|writes|said|say(s)?).*:" +#color body color100 color232 "^(>[ ]?){3}>[^>].*(wrote|writes|said|say(s)?).*:" +#color body color89 color232 "^(>[ ]?){4}>[^>].*(wrote|writes|said|say(s)?).*:" +#color body color29 color232 "^(>[ ]?){5}>[^>].*(wrote|writes|said|say(s)?).*:" +#color body color127 color232 "^(>[ ]?){6}>[^>].*(wrote|writes|said|say(s)?).*:" +#color body color59 color232 "^(>[ ]?){7}>[^>].*(wrote|writes|said|say(s)?).*:" +#color body color167 color232 "^(>[ ]?){8}>[^>].*(wrote|writes|said|say(s)?).*:" +# # Source index for links -color body color229 color232 "\[[1-9][0-9]*\]" - +#color body color229 color232 "\[[1-9][0-9]*\]" +# # Index -color index color245 color232 ~Q # mail that has been replied to -color index color245 color232 ~R # read mail -color index brightcolor250 color232 "~N | ~U" # New or unread -color index brightcolor49 color232 ~T # Tagged -color index brightcolor196 color232 ~D # Deleted -color index brightcolor34 color232 ~F # Flagged -color index color202 color232 "~z >500K" # Highlight large messages +#color index color245 default ~Q # mail that has been replied to +#color index color245 default ~R # read mail +#color index brightcolor250 default "~N | ~U" # New or unread +#color index brightcolor49 default ~T # Tagged +#color index brightcolor196 default ~D # Deleted +#color index brightcolor34 default ~F # Flagged +#color index color202 default "~z >500K" # Highlight large messages #color index color232 green ~(~F) # Thread of flagged message #color index brightcyan default ~p # mail addressed to me (as defined by alternates) #color index brightblue default ~P # mail from myself (as defined by alternates) - +# # Headers -color header color10 color232 "^(From|Subject|Cc|Date|To|Reply-to|X-Spam-Level|User-Agent|X-Mailer):" +#color header color10 color232 "^(From|Subject|Cc|Date|To|Reply-to|X-Spam-Level|User-Agent|X-Mailer):" #color header red default "^X-DSPAM" - +# # Body -color body color12 color232 "(http|https|ftp|news|telnet|finger|irc)://[^ \">\t\r\n]*" -color body color10 color232 "(mailto:)?[-a-z_0-9.]+@[-a-z_0-9.]+" +#color body color12 color232 "(http|https|ftp|news|telnet|finger|irc)://[^ \">\t\r\n]*" +#color body color10 color232 "(mailto:)?[-a-z_0-9.]+@[-a-z_0-9.]+" #color body red default "mailto:" - -color body brightcolor226 color232 "[[:space:]][;:][-][)/|O>(<][[:space:][:cntrl:]]" # smilies -color body brightcolor226 color232 "^[;:][-][)O>(<][[:space:][:cntrl:]]" # smilies +# +#color body brightcolor226 color232 "[[:space:]][;:][-][)/|O>(<][[:space:][:cntrl:]]" # smilies +#color body brightcolor226 color232 "^[;:][-][)O>(<][[:space:][:cntrl:]]" # smilies #color body default default "^:.*" # mutt strangely colors these red by default - +# # Colors for t-prot -color body color240 color232 "^\\[---.*" -color body color22 color232 "^#v[-+]" - +#color body color240 color232 "^\\[---.*" +#color body color22 color232 "^#v[-+]" +# # vim:ft=muttrc:fdm=marker:ts=4:sw=4: +# -- 2.39.5