dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

muttrc (6655B)


      1 # Paths ----------------------------------------------
      2 set folder           = ~/Mail                  # mailbox location
      3 set alias_file       = ~/.config/mutt/aliases  # where to store aliases
      4 set header_cache     = ~/.cache/mutt/headers   # where to store headers
      5 set message_cachedir = ~/.cache/mutt/bodies    # where to store bodies
      6 set tmpdir           = ~/.cache/mutt/tmp       # where to keep temp files
      7 set certificate_file = ~/.config/mutt/certificates    # where to store certs
      8 set mailcap_path     = ~/.config/mutt/mailcap         # entries for filetypes
      9 set signature        = ~/.config/mutt/sig             # my signature file
     10 
     11 # Aliases --------------------------------------------
     12 set sort_alias = alias
     13 set reverse_alias = yes
     14 source $alias_file
     15 
     16 # Account Settings -----------------------------------
     17 set my_maildir = 'chris.bracken-gmail.com'
     18 
     19 # Alternate email addresses.
     20 alternates chris@bracken.jp
     21 
     22 # Core mailboxes.
     23 set spoolfile = "+$my_maildir/INBOX"
     24 set mbox      = "+$my_maildir/archive"
     25 set postponed = "+$my_maildir/drafts"
     26 set record    = "+$my_maildir/sent"
     27 
     28 # Mailboxes to show in the sidebar.
     29 mailboxes +$my_maildir/INBOX \
     30           +$my_maildir/archive \
     31           +$my_maildir/sent \
     32           +$my_maildir/drafts
     33 
     34 
     35 # Basic Options --------------------------------------
     36 set wait_key = no        # don't prompt for <enter> so much
     37 set mbox_type = Maildir  # mailbox type
     38 set timeout = 3          # idle time before scanning
     39 set mail_check = 0       # minimum time between scans
     40 set copy = yes           # store a copy of sent mail in the record
     41 set delete               # don't confirm deletes
     42 unset move               # gmail does that
     43 unset confirmappend      # don't prompt every time we append to mailbox
     44 unset mark_old           # read/new is good enough for me
     45 set beep_new             # bell on new mails
     46 set pipe_decode          # strip headers and eval mimes when piping
     47 set thorough_search      # strip headers and eval mimes before searching
     48 set markers = no
     49 
     50 # Use abook instead of aliases
     51 set query_command = "abook --mutt-query '%s'"
     52 macro generic,index,pager \ca "<shell-escape>abook<return>" "launch abook"
     53 macro index,pager A "<pipe-message>abook --add-email-quiet<return>" "add sender to address book"
     54 bind editor <tab> complete-query
     55 
     56 # Index View Options ---------------------------------
     57 set date_format = "!%Y-%m-%d %H:%M %Z"
     58 set index_format = "%Z  %D  %-20.20F  (%4c)  %s"
     59 set sort = threads
     60 set sort_aux = reverse-last-date-received
     61 set uncollapse_jump
     62 set sort_re
     63 set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
     64 bind index P recall-message
     65 
     66 # Index Key Bindings ---------------------------------
     67 bind index gg      first-entry
     68 bind index G       last-entry
     69 bind index H       help
     70 bind index R       group-reply
     71 bind index ?       search-opposite
     72 bind index <space> collapse-thread
     73 macro index a "<limit>all\n" "show all messages (undo limit)"
     74 macro index o "<shell-escape>mbsync gmail; notmuch new<enter>" "sync core mailboxes"
     75 macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
     76 macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
     77 macro index gi "<change-folder>=$my_maildir/INBOX<enter>" "Go to Inbox"
     78 macro index ga "<change-folder>=$my_maildir/archive<enter>" "Go to All Mail"
     79 macro index gs "<change-folder>=$my_maildir/sent<enter>" "Go to Sent Mail"
     80 macro index gd "<change-folder>=$my_maildir/drafts<enter>" "Go to Drafts"
     81 macro index S "<enter-command>unset wait_key<enter><shell-escape>~/.config/mutt/mutt-notmuch-py -G ~/Mail/.tmp/search<enter><change-folder-readonly>+.tmp/search<enter>" "search mail (using notmuch)"
     82 
     83 # Pager View Options ---------------------------------
     84 set pager_index_lines = 10 # number of index lines to show
     85 set pager_context = 3      # number of context lines to show
     86 set pager_stop             # don't go to next message automatically
     87 set menu_scroll            # scroll in menus
     88 set tilde                  # show tildes like in vim
     89 unset markers              # no ugly plus signs
     90 
     91 set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
     92 auto_view text/html application/pgp-encrypted
     93 alternative_order text/plain text/enriched text/html
     94 
     95 # Pager Key Bindings ---------------------------------
     96 bind pager gg  top
     97 bind pager G   bottom
     98 bind pager H   help
     99 bind pager j   next-entry
    100 bind pager k   previous-entry
    101 bind pager \Cj next-line
    102 bind pager \Ck previous-line
    103 bind pager u   half-up
    104 bind pager <space> half-down
    105 bind pager R   group-reply
    106 bind pager ?   search-opposite
    107 bind attach <return> view-mailcap # View attachments properly.
    108 macro pager \Cu "|urlview<enter>" "call urlview to open links"
    109 
    110 # Header Options -------------------------------------
    111 ignore *                                # ignore all headers
    112 unignore date: from: to: cc: subject:   # show only these
    113 unhdr_order *                           # some distros order things by default
    114 hdr_order date: from: to: cc: subject:  # and in this order
    115 
    116 # Compose View Options -------------------------------
    117 set realname = "Chris Bracken"
    118 set use_from = yes
    119 set envelope_from                    # which from?
    120 set sig_dashes                       # dashes before sig
    121 set edit_headers                     # show headers when composing
    122 set fast_reply                       # skip to compose when replying
    123 set askcc                            # ask for CC:
    124 set fcc_attach                       # save attachments with the body
    125 unset mime_forward                   # forward attachments as part of body
    126 set forward_format = "Fwd: %s"       # format of subject when forwarding
    127 set forward_decode                   # decode when forwarding
    128 set attribution = "%d %n <%a>:"      # reply quote header
    129 set reply_to                         # reply to Reply to: field
    130 set reverse_name                     # reply as whomever it was to
    131 set include                          # include message in replies
    132 set forward_quote                    # include message in forwards
    133 
    134 # Editor ----------------------------------------------
    135 set editor='nvim + -c "set nocp" -c "set textwidth=72" -c "set wrap" -c "silent /^$" -c "noh" -c "vmap <leader>s c[... snip ...]<ESC>"
    136 
    137 # Send Options ---------------------------------------
    138 set from          = "chris@bracken.jp"
    139 set sendmail      = "msmtp -a bracken_jp"
    140 set sendmail_wait = 0
    141 
    142 # Status Bar -----------------------------------------
    143 set status_chars  = " *%A"
    144 set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"
    145 
    146 source ~/.config/mutt/colors
    147 source ~/.config/mutt/crypto