dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

muttrc (5147B)


      1 # Basic
      2 set editor                  = "/usr/bin/vim"
      3 set sendmail                = "msmtp-tpl ~/.config/mstmp/template"
      4 set use_from                = yes
      5 set envelope_from           = yes
      6 set mail_check              = 0
      7 
      8 # composing mail
      9 set forward_format          = "Fwd: %s"
     10 set include
     11 set forward_quote
     12 set sig_dashes              = yes
     13 set send_charset            = "us-ascii:utf-8"
     14 
     15 # Bindings
     16 bind index                  j next-entry
     17 bind index                  k previous-entry
     18 bind index                  >r group-reply
     19 bind attach,index,pager     \ej next-page
     20 bind attach,index,pager     \ek previous-page
     21 bind pager                  g noop
     22 bind pager                  gg top
     23 bind pager                  G bottom
     24 bind attach,index           g noop
     25 bind attach,index           gg first-entry
     26 bind attach,index           G last-entry
     27 bind index,pager            D delete-message
     28 bind index                  d noop
     29 bind index                  \Cy previous-entry
     30 bind index                  \Ce next-entry
     31 macro index,pager           c "<change-folder>?<toggle-mailboxes>"
     32 macro index,pager           >m "<tag-prefix><save-message>?<toggle-mailboxes>"
     33 macro index,pager           >c "<tag-prefix><copy-message>?<toggle-mailboxes>"
     34 macro compose               >a "<attach-message>?<toggle-mailboxes>"
     35 macro index,pager           R "<shell-escape>operations sync-mail<enter><change-folder>!<enter>"
     36 
     37 # Sidebar
     38 set sleep_time              = 0
     39 set sidebar_visible         = yes
     40 set sidebar_format          = " %B%?F? [%F]?%* %?N?%N/?%?S?%S? "
     41 set sidebar_short_path
     42 set sidebar_delim_chars     = "/"
     43 set sidebar_folder_indent
     44 set sidebar_indent_string   = "  "
     45 set sidebar_width           = 34
     46 set sidebar_divider_char    = '│'
     47 set mail_check_stats
     48 bind index,pager            J sidebar-next
     49 bind index,pager            K sidebar-prev
     50 bind index,pager            L sidebar-open
     51 bind index,pager            B sidebar-toggle-visible
     52 
     53 # Index
     54 set date_format             = "%Y-%m-%d %H:%M:%S"
     55 set index_format            = "%3C [ %Z ]  %D  %-20.20F  %s (%-4.4c)"
     56 set sort                    = "threads"
     57 set sort_aux                = "reverse-last-date-received"
     58 
     59 # Hide help
     60 set help                    = "yes"
     61 
     62 # Colorize index
     63 color normal                default default
     64 color tilde                 color2  color0
     65 color index                 color14 default "~b \".*\" !~N !~O !~U !~F !~T !~D"
     66 color indicator             color6  color5
     67 color index                 color15 default ~N
     68 color index                 color15 default ~O
     69 color index                 color15 default ~U
     70 color index                 color10 default ~F
     71 color index                 color11 default ~T
     72 color index                 color9  default ~D
     73 color index_number          color15 default
     74 color index_size            color8  default
     75 color body                  color9  default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
     76 color body                  color12 default (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+
     77 color status                color6  color5
     78 color message               color14 default
     79 color attachment            color14 color5
     80 color error                 color9  default
     81 color tree                  color13 default
     82 color search                color6  color5
     83 color hdrdefault            color30 color6
     84 color header                color0  color2 '^date:'
     85 color header                color0  color2 '^(to|cc|bcc):'
     86 color header                color0  color2 '^from:'
     87 color header                color0  color2 '^subject:'
     88 color header                color0  color2 '^user-agent:'
     89 color header                color0  color2 '^reply-to:'
     90 color quoted                color14 color2
     91 
     92 # mailcap
     93 set mailcap_path            = "~/.config/mutt/mailcap"
     94 alternative_order           = text/plain text/enriched text/html
     95 auto_view                   = text/html
     96 # open message in html view
     97 bind index,pager            V noop
     98 macro index,pager           V "<view-attachments><search>html<enter><view-mailcap>"
     99 
    100 # Pager
    101 set pager_index_lines       = 10
    102 set pager_context           = 3
    103 set tilde
    104 unset markers
    105 
    106 # status bar
    107 set status_chars            = " *%A"
    108 set status_format           = " %f (%m messages%?n?, %n new?%?d?, %d to delete?%?t?, %t tagged?)%> %?p?(%p postponed)? %P "
    109 
    110 # headers
    111 set edit_headers            = yes
    112 unset use_domain
    113 unset user_agent
    114 unmy_hdr *
    115 #my_hdr X-Info: Keep It Simple, Stupid.
    116 #my_hdr X-Operating-System: `uname -s`, kernel `uname -r`
    117 #my_hdr X-Message-Flag: WARNING: you are using an inferior email client
    118 #my_hdr User-Agent: Every email client sucks, this one just sucks less.
    119 
    120 set my_accf_0               = "/tmp/mutt-webmail-0-local.tld"
    121 set my_accf_1               = "/tmp/mutt-webmail-1-local.tld"
    122 source                      "[ ! -f $my_accf_0 ] && pass mail/muttrc/webmail-0-local.tld > $my_accf_0; cat $my_accf_0 |"
    123 source                      "[ ! -f $my_accf_1 ] && pass mail/muttrc/webmail-1-local.tld > $my_accf_1; cat $my_accf_1 |"
    124 source                      "$my_accf_0"
    125 macro index "\e1"           ":source $my_accf_0<enter><change-folder>!<enter>"
    126 macro index "\e2"           ":source $my_accf_1<enter><change-folder>!<enter>"