view mutt/muttrc @ 455:1172b8484c68

Add global `gitignore` file.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 13 Nov 2018 09:55:59 -0800
parents ff48d206d1f1
children 31079b060068
line wrap: on
line source


# Main stuff.
set from = "$my_user"
set realname = "$my_realname"


# Folders... apparently Mutt doesn't pull all of them automatically.
mailboxes = "imaps://$my_imap/$my_folder_inbox" \
            "imaps://$my_imap/Sent Items" \
            "imaps://$my_imap/Drafts" \
            "imaps://$my_imap/Archive" \
            "imaps://$my_imap/MailingLists" \
            "imaps://$my_imap/Newsletters" \
            "imaps://$my_imap/Trash"


# Basic config
#set editor = "vim"
set editor = "vim +/^$ ++1 -c 'set tw=76 expandtab nosmartindent spell'"
#set hostname = "$my_hostname"
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
set move = no
set delete = yes
set sort = 'threads'
set sort_aux = 'reverse-last-date-received'
set auto_tag = yes
set pager_stop  # Don't move to the next message automatically
set fast_reply  # Don't ask stupid questions when replying
set include  # Auto-quote
set reverse_name  # Reply from the account the message was sent to
set use_envelope_from  # Move or less same as previous
set quit = yes  # Don't ask before quitting
set mark_old = no  # Read/unread is enough
set beep_new = yes  # Been when there are new messages
set pipe_decode  # Strip headers and eval mimes when piping
set thorough_search  # Strip headers and eval mimes before searching
set uncollapse_jump
set date_format = "%d/%m/%Y"  # Show the date like you're civilized
set index_format = "[%Z]  %D  %-20.20F  %s"
set collapse_unread
set text_flowed

ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
alternative_order text/plain text/html *
auto_view text/html

bind editor <Tab> complete-query
bind editor ^T complete

bind index <tab> sync-mailbox
bind index <space> collapse-thread

bind index gg first-entry
bind index G last-entry

bind index R group-reply


# Pager
set pager_index_lines = 10  # number of index lines to show
set pager_context = 3  # number of context lines to show
set pager_stop  # don't go to next message automatically
set menu_scroll  # scroll in menus
set tilde  # show tildes like in vim
unset markers  # no ugly plus signs

set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
alternative_order text/plain text/enriched text/html

bind pager k previous-line
bind pager j next-line
bind pager gg top
bind pager G bottom

bind pager R group-reply

bind attach <return> view-mailcap # View attachements properly

macro pager \Cu "|urlview<enter>" "call urlview to open links"


# Status bar
set status_chars  = " *%A"
set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"


# Sidebar
set sidebar_visible
set sidebar_short_path
set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
set mail_check_stats

bind index,pager B sidebar-toggle-visible
bind index,pager <down>   sidebar-next
bind index,pager <up>     sidebar-prev
bind index,pager <right>  sidebar-open


# Gmail-style keyboard shortcuts
#macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
#macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n <delete-message>" "Gmail delete message"
#macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
#macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
#macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
#macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"