summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/.muttrc112
1 files changed, 80 insertions, 32 deletions
diff --git a/home/.muttrc b/home/.muttrc
index 8c27f64..261d156 100644
--- a/home/.muttrc
+++ b/home/.muttrc
@@ -85,7 +85,6 @@ set noprompt_after # ask me for a command after the external pager exits
#set quote_regexp="^ *[a-zA-Z]*[>:#}]" # how to catch quoted text
set read_inc=25 # show progress when reading a mailbox
#set recall # prompt to recall postponed messages
-set record=+.Sent # default location to save outgoing mail
set reply_to # always use reply-to if present
#set reply_regexp="^(re:[ \t]*)+"# how to identify replies in the subject:
#set resolve # move to the next message when an action is performed
@@ -110,13 +109,13 @@ set sort_browser=alpha # Sort mailboxes by alpha(bet)
#set sort_browser=unsorted # Do not sort mailboxes
set ssl_starttls=yes # activate TLS if available on the server
set ssl_force_tls=yes # always use SSL when connecting to a server
-#set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %l]---(%s)-%>-(%P)---"
-#set status_on_top # some people prefer the status bar on top
+set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s)-%>-(%P)---"
+set status_on_top # some people prefer the status bar on top
set strict_threads=yes # don't thread by subject
set tilde=yes # virtual lines to pad blank lines in the pager
#set timeout=0 # timeout for prompt in the index menu
#set tmpdir=~/tmp # where to store temp files
-#set to_chars=" +TCF"
+#set to_chars=" +TCFL"
#set trash="=.Trash"
#set use_8bitmime # enable the -B8BITMIME sendmail flag
set nouse_domain # don't qualify local addresses with $domain
@@ -127,11 +126,6 @@ set pgp_verify_sig=yes # do automatically verify message signatures
#set nowait_key # prompt when a pipe returns normal status
set write_inc=25 # show progress while writing mailboxes
-# only enable the following IFF you have sendmail 8.8.x or you will not
-# be able to send mail!!!
-#set dsn_notify='failure,delay' # when to return an error message
-#set dsn_return=hdrs # what to return in the error message
-
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Header fields I don't normally want to see
@@ -139,37 +133,72 @@ set write_inc=25 # show progress while writing mailboxes
ignore * # this means "ignore all lines by default"
# I do want to see these fields, though!
-unignore from: to cc subject mail-followup-to \
+unignore from to cc subject mail-followup-to \
date x-url # this shows how nicely wrap long lines
-# x-mailer # removed fields
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Color definitions
#
-
-#color normal white default
-#color hdrdefault red default
-#color quoted brightblue default
-color signature red default
-#color indicator brightyellow red
-color error brightred default
-#color status yellow blue
-#color tree magenta default # the thread tree in the index menu
-color tilde magenta default
-#color message brightcyan default
-#color markers brightcyan default
-#color attachment brightmagenta default
-color search default green # how to hilite search patterns in the pager
-
-#color header brightred default ^(From|Subject):
-#color body magenta default "(ftp|http|https)://[^ ]+" # point out URLs
-#color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses
-#color underline brightgreen default
+# overconfigured and partially sourced from
+# https://github.com/mrtyler/dotfiles/blob/master/mutt-colors
+
+# Color terminals
+color normal default default # normal text
+color indicator black green # actual message
+color tree cyan default # thread arrows
+color status brightwhite green # status line
+color error brightred default # errors
+color message red default # info messages
+color signature red default # signature
+color attachment green brightblack # MIME attachments
+color search green brightblack # search matches
+color markers red default # + at beginning of wrapped lines
+color tilde magenta default # ~ at beginning of empty lines
+color hdrdefault green default # default header lines
+color bold red default # hiliting bold patterns in body
+color underline green default # hiliting underlined patterns in body
+color quoted magenta default # quoted text
+color quoted1 cyan default
+color quoted2 red default
+color quoted3 green default
+color quoted4 blue default
+color quoted5 magenta default
+color quoted6 cyan default
+color quoted7 red default
+color quoted8 green default
+color quoted9 cyan default
+
+# Various colors for different things in the mail text (URLs, email
+# addresses, etc.).
+color header brightgreen default "^(From|Subject):"
+color body cyan default "((ftp|http|https)://|(file|mailto|news):|www\\.)[-a-z0-9_.:]*[a-z0-9](/[^][{}\t\n\r\"<>()]*[^][{} \t\n\r\"<>().,:!])?/?" # point out URLs
+color body cyan default "[-a-z_0-9.+]+@[-a-z_0-9.]+" # email addresses
+color body red default "(^| )\\*[-a-z0-9*]+\\*[,.?]?[ \n]"
+color body green default "(^| )_[-a-z0-9_]+_[,.?]?[ \n]"
+
+color index yellow default ~F # Flagged
+color index brightgreen default ~N # New
+color index green default ~O # Old
+color index magenta default ~T # Tagged
+color index red default ~D # Deleted
# attributes when using a mono terminal
-#mono header underline ^(From|Subject):
-mono quoted bold
+mono normal none # normal text
+mono indicator reverse # actual message
+mono tree none # thread arrows
+mono status reverse # status line
+mono error bold # errors
+mono message none # info messages
+mono quoted bold # quoted text
+mono signature none # signature
+mono attachment underline # MIME attachments
+mono search reverse # search matches
+mono tilde none # ~ at bottom of msg
+mono markers bold # + at beginning of wrapped lines
+mono hdrdefault none # default header lines
+mono bold bold # hiliting bold patterns in body
+mono underline underline # hiliting underlined patterns in body
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
@@ -196,9 +225,15 @@ bind generic \177 last-entry
macro index \cb "<pipe-message> urlview<Enter>" # simulate the old browse-url function
+bind editor <Tab> complete-query
+bind editor ^T complete
+
macro index S "<save-message>+Junk<Enter>"
macro pager S "<save-message>+Junk<Enter>"
+macro index "x" |urlview<enter>
+macro pager "x" |urlview<enter>
+
#macro index \# "<search>bug<Enter>" # search for bugs
#macro index "\"" "<enter-command> set realname=\"real hairy macro\" ?realname<Enter>" # and a comment to boot!
#macro index f1 "<enter-command>woohoo!"
@@ -219,6 +254,19 @@ macro compose A "<attach-message>?" "attach message(s) to this message"
#bind editor \cy eol # make ^Y jump to the end of the line
+# key binds for pgp
+bind compose p pgp-menu
+macro compose Y pfy "send mail without GPG"
+
+# show _all_ mails
+macro index \# "l~A\r" "Show ALL Mails"
+# show flagged and unread mails (i.e. important)
+macro index \' "l(~F | ~U) ! ~D\r" "Show Important Mails"
+# show unreplied and flagged mails (i.e. TODO)
+macro index \` "l(! ~Q | ~F) ! ~D\r" "Show TODO Mail"
+# mark everything as read
+macro index + "T~N\n;N;t" "Mark everything as read"
+
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# User Defined Headers