dockerfiles/mutt/.mutt/muttrc

82 lines
2.8 KiB
Plaintext
Raw Normal View History

2014-12-05 08:09:20 +01:00
# A basic .muttrc for use with Gmail
# Change the following six lines to match your Gmail account details
set imap_user = "%GMAIL_LOGIN%"
set imap_pass = "%GMAIL_PASS%" # leave blank for prompt
set smtp_url = "smtps://$imap_user@%SMTP_SERVER%:465/"
2015-01-07 19:59:35 +01:00
set smtp_pass = "$imap_pass" # leave blank for prompt
2015-01-13 17:52:55 +01:00
set from = "%GMAIL_FROM%"
2014-12-05 08:09:20 +01:00
set realname = "%GMAIL_NAME%"
set signature = "~/.mutt/signature"
2014-12-05 08:09:20 +01:00
# Change the following line to a different editor you prefer (and update the Dockerfile accordingly, of course).
set editor = "vim"
# I like seeing some headers. :)
ignore *
unignore date subject x- user-agent posted-to content-type
unignore to cc bcc reply-to from
set edit_headers = yes
my_hdr X-Docker-Image: jess/mutt
2015-01-24 18:49:32 +01:00
my_hdr X-Hack-The-Planet: Yes
my_hdr X-Acid-Burn: Yes
2014-12-05 08:09:20 +01:00
# TODO figure out how to use the sidebar more effectively :)
set sidebar_visible = no
# Tianon keybindings and settings, because he's special.
bind pager <up> previous-line
bind pager <down> next-line
set resolve = no # uh, don't randomly take me to other messages when I do things
# Basic config, you can leave this as is
set folder = "imaps://%IMAP_SERVER%"
2014-12-05 08:09:20 +01:00
set spoolfile = "+INBOX"
set imap_check_subscribed
set hostname = gmail.com
2015-01-07 19:59:35 +01:00
set mail_check = 60
2014-12-05 08:09:20 +01:00
set timeout = 300
set imap_keepalive = 300
set postponed = "+[Gmail]/Drafts"
set record = "" # gmail automatically handles saving sent emails
2014-12-05 20:37:42 +01:00
2014-12-05 08:09:20 +01:00
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
2014-12-05 20:37:42 +01:00
2014-12-05 08:09:20 +01:00
set move = no
set include
2014-12-05 20:37:42 +01:00
set sort = 'reverse-threads'
set sort_aux = 'last-date-received'
2014-12-05 08:09:20 +01:00
set auto_tag = yes
2014-12-05 20:37:42 +01:00
2014-12-05 08:09:20 +01:00
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
2014-12-05 20:37:42 +01:00
2014-12-05 08:09:20 +01:00
bind editor <Tab> complete-query
bind editor ^T complete
bind editor <space> noop
set mailcap_path = ~/.mutt/mailcap
2014-12-05 22:10:51 +01:00
2014-12-05 08:09:20 +01:00
# Gmail-style keyboard shortcuts
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 Gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to Drafts"
macro index,pager Gs "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to Sent Mail"
2014-12-05 20:37:42 +01:00
macro index,pager a "<enter-command>unset resolve<enter><enter-command>unset trash<enter><clear-flag>N<enter-command>set resolve<enter><delete-message><enter>"
macro index,pager d ";s+[Gmail]/Trash<enter><enter>" "Trash"
macro index,pager u ";s+INBOX<enter><enter>" "Move to Inbox"
2014-12-05 20:37:42 +01:00
macro index,pager ! <save-message>=[Gmail]/Spam<enter><enter> "Report spam"
macro index,pager + <save-message>=[Gmail]/Important<enter><enter> "Mark as Important"
macro index,pager * <save-message>=[Gmail]/Starred<enter><enter> "Star Message"
2014-12-05 08:09:20 +01:00
# colors
source ~/.mutt/mutt-colors-solarized-dark-16.muttrc
source ~/.mutt/mutt-patch-highlighting.muttrc