Skip to content

Instantly share code, notes, and snippets.

@tristancollins
Created August 3, 2014 09:14
Show Gist options
  • Save tristancollins/c7e213ef776edf19c109 to your computer and use it in GitHub Desktop.
Save tristancollins/c7e213ef776edf19c109 to your computer and use it in GitHub Desktop.
My dotmuttrc file for use with Fastmail
set from = "xxxxxxx"
set realname = "xxxxxxxx"
# Quick Settings
set my_server = mail.messagingengine.com
set my_user = xxxxxxxx
set my_pass = xxxxxxxx
# Account Information
set smtp_url = "smtp://$my_user:$my_pass@$my_server:587"
set smtp_pass = $my_pass
set imap_user = $my_user
set imap_pass = $my_pass
# Mailboxes
set folder = "imaps://$my_server:992"
set spoolfile = "="
set record = "=Sent Items"
set postponed = "=Drafts"
set trash = "=Trash"
mailboxes = "="
# AutoComplete Addresses
set query_command = "~/.mutt/fastmail-ldap.pl '%s'"
bind editor <Tab> complete-query
bind editor ^T complete
# Cache
set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
# Options
set index_format = "%3C %Z %[%b %d %R] %-18.18L (%4c) %s"
set imap_idle=yes
unset imap_passive
set timeout=15
set mail_check = 5
set imap_keepalive = 900
set sort = threads
set sort_browser=date
set sort_aux=reverse-last-date-received
set editor = "emacs +8 %s"
set pager_index_lines = 10
set pager_context = 5
unset markers
set delete=yes
set noconfirmappend
set edit_headers
unset mark_old
set pager_stop
set strict_threads = yes
# Keyboard
bind index "^" imap-fetch-mail
bind index \ed purge-message
bind pager \ed purge-message
bind compose p postpone-message
bind index p recall-message
bind pager <up> previous-line
bind pager <down> next-line
bind pager "[" half-up
bind pager "]" half-down
# Delete and move up a message NOT SURE THIS WORKS! In which case uncomment the two lines above for purging
#macro index,pager d "<delete-message><previous-entry><previous-entry>" "mark for deletion and move up"
#macro index,pager \ed "<purge-message><previous-entry><previous-entry>" "mark for deletion and move up"
# Mark read and delete - use "esc a"
macro index \ea "<enter-command>unset resolve<enter><clear-flag>N<enter-command>set resolve<enter><save-message>=Trash<enter><sync-mailbox>" "mark read and delete"
# Solarized
#uncomment the colorscheme you want to use, and comment out the others
source "~/.mutt/mutt-colors-solarized/mutt-colors-solarized-dark-16.muttrc"
#source $MAILCONF/mutt-colors-solarized/mutt-colors-solarized-light-16.muttrc
#source "~/.mutt/mutt-colors-solarized/mutt-colors-solarized-dark-256.muttrc"
#source $MAILCONF/mutt-colors-solarized/mutt-colors-solarized-light-256.muttr
# Opening links etc
macro index \cb |urlview 'call urlview to extract URLs out of a message'
macro pager \cb |urlview 'call urlview to extract URLs out of a message'
# HTML emails
set mailcap_path="~/.mailcap"
auto_view text/html
alternative_order text/plain text/html
#set query_command="/usr/local/bin/muttqt -q '%s'"
set alias_file=~/.mutt/aliases
source $alias_file
Copy link

ghost commented Nov 9, 2015

I've just moved from Google Apps for Business to FastMail and this is just what I needed. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment