mutt-wizard

Autoconfigure a terminal email setup with mutt and offline mail
Log | Files | Refs | README | LICENSE

mutt-wizard.muttrc (7594B)


      1 # vim: filetype=neomuttrc
      2 # This file contains all of mutt-wizard's default settings.
      3 # mutt-wizard will have this file sourced from your muttrc.
      4 # In the interest of seamless updating, do not edit this file.
      5 # If you want to override any settings, set those in your muttrc.
      6 set mailcap_path = /usr/local/share/mutt-wizard/mailcap
      7 set date_format="%y/%m/%d %I:%M%p"
      8 set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
      9 set sort = 'reverse-date'
     10 set smtp_authenticators = 'gssapi:login'
     11 set query_command = "abook --mutt-query '%s'"
     12 set rfc2047_parameters = yes
     13 set sleep_time = 0		# Pause 0 seconds for informational messages
     14 set markers = no		# Disables the `+` displayed at line wraps
     15 set mark_old = no		# Unread mail stay unread until read
     16 set mime_forward = yes		# attachments are forwarded with mail
     17 set wait_key = no		# mutt won't ask "press key to continue"
     18 set fast_reply			# skip to compose when replying
     19 set fcc_attach			# save attachments with the body
     20 set forward_format = "Fwd: %s"	# format of subject when forwarding
     21 set forward_quote		# include message in forwards
     22 set reverse_name		# reply as whomever it was to
     23 set include			# include message in replies
     24 set mail_check=60 # to avoid lags using IMAP with some email providers (yahoo for example)
     25 auto_view text/html		# automatically show html (mailcap uses w3m)
     26 auto_view application/pgp-encrypted
     27 alternative_order text/plain text/enriched text/html
     28 bind index,pager i noop
     29 bind index,pager g noop
     30 bind index \Cf noop
     31 
     32 # General rebindings
     33 bind index j next-entry
     34 bind index k previous-entry
     35 bind attach <return> view-mailcap
     36 bind attach l view-mailcap
     37 bind editor <space> noop
     38 bind index G last-entry
     39 bind index gg first-entry
     40 bind pager,attach h exit
     41 bind pager j next-line
     42 bind pager k previous-line
     43 bind pager l view-attachments
     44 bind index D delete-message
     45 bind index U undelete-message
     46 bind index L limit
     47 bind index h noop
     48 bind index l display-message
     49 bind index,query <space> tag-entry
     50 #bind browser h goto-parent
     51 macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
     52 bind index,pager H view-raw-message
     53 bind browser l select-entry
     54 bind pager,browser gg top-page
     55 bind pager,browser G bottom-page
     56 bind index,pager,browser d half-down
     57 bind index,pager,browser u half-up
     58 bind index,pager S sync-mailbox
     59 bind index,pager R group-reply
     60 bind index \031 previous-undeleted	# Mouse wheel
     61 bind index \005 next-undeleted		# Mouse wheel
     62 bind pager \031 previous-line		# Mouse wheel
     63 bind pager \005 next-line		# Mouse wheel
     64 bind editor <Tab> complete-query
     65 
     66 #set crypt_autosign = yes
     67 #set crypt_opportunistic_encrypt = yes
     68 #set pgp_self_encrypt = yes
     69 #set pgp_default_key  = 'your@gpgemailaddre.ss'
     70 
     71 macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
     72 macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
     73 macro index O "<shell-escape>mbsync -a<enter>" "run mbsync to sync all mail"
     74 macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>printf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"
     75 macro index A "<limit>all\n" "show all messages (undo limit)"
     76 
     77 # Sidebar mappings
     78 set sidebar_visible = yes
     79 set sidebar_width = 20
     80 set sidebar_short_path = yes
     81 set sidebar_next_new_wrap = yes
     82 set mail_check_stats
     83 set sidebar_format = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?'
     84 bind index,pager \Ck sidebar-prev
     85 bind index,pager \Cj sidebar-next
     86 bind index,pager \Co sidebar-open
     87 bind index,pager \Cp sidebar-prev-new
     88 bind index,pager \Cn sidebar-next-new
     89 bind index,pager B sidebar-toggle-visible
     90 
     91 # Default index colors:
     92 color index yellow default '.*'
     93 color index_author red default '.*'
     94 color index_number blue default
     95 color index_subject cyan default '.*'
     96 
     97 # New mail is boldened:
     98 color index brightyellow black "~N"
     99 color index_author brightred black "~N"
    100 color index_subject brightcyan black "~N"
    101 
    102 # Tagged mail is highlighted:
    103 color index brightyellow blue "~T"
    104 color index_author brightred blue "~T"
    105 color index_subject brightcyan blue "~T"
    106 
    107 # Other colors and aesthetic settings:
    108 mono bold bold
    109 mono underline underline
    110 mono indicator reverse
    111 mono error bold
    112 color normal default default
    113 color indicator brightblack white
    114 color sidebar_highlight red default
    115 color sidebar_divider brightblack black
    116 color sidebar_flagged red black
    117 color sidebar_new green black
    118 color normal brightyellow default
    119 color error red default
    120 color tilde black default
    121 color message cyan default
    122 color markers red white
    123 color attachment white default
    124 color search brightmagenta default
    125 color status brightyellow black
    126 color hdrdefault brightgreen default
    127 color quoted green default
    128 color quoted1 blue default
    129 color quoted2 cyan default
    130 color quoted3 yellow default
    131 color quoted4 red default
    132 color quoted5 brightred default
    133 color signature brightgreen default
    134 color bold black default
    135 color underline black default
    136 color normal default default
    137 
    138 # Regex highlighting:
    139 color header blue default ".*"
    140 color header brightmagenta default "^(From)"
    141 color header brightcyan default "^(Subject)"
    142 color header brightwhite default "^(CC|BCC)"
    143 color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
    144 color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
    145 color body green default "\`[^\`]*\`" # Green text between ` and `
    146 color body brightblue default "^# \.*" # Headings as bold blue
    147 color body brightcyan default "^## \.*" # Subheadings as bold cyan
    148 color body brightgreen default "^### \.*" # Subsubheadings as bold green
    149 color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
    150 color body brightcyan default "[;:][-o][)/(|]" # emoticons
    151 color body brightcyan default "[;:][)(|]" # emoticons
    152 color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
    153 color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
    154 color body red default "(BAD signature)"
    155 color body cyan default "(Good signature)"
    156 color body brightblack default "^gpg: Good signature .*"
    157 color body brightyellow default "^gpg: "
    158 color body brightyellow red "^gpg: BAD signature from.*"
    159 mono body bold "^gpg: Good signature"
    160 mono body bold "^gpg: BAD signature from.*"
    161 color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"