Skip to content

Instantly share code, notes, and snippets.

@rtucker
Created February 19, 2016 01:41
Show Gist options
  • Save rtucker/12f02c06e056da157217 to your computer and use it in GitHub Desktop.
Save rtucker/12f02c06e056da157217 to your computer and use it in GitHub Desktop.
my mutt configuration (from long ago)
color normal white default
color attachment brightyellow default
color hdrdefault cyan default
color indicator brightwhite default
color markers brightred default
color quoted green default
color signature cyan default
color tilde blue default
color tree red default
color quoted1 green default
color index brightyellow default ~N
color index yellow default ~O
# colorize based on from?
#color index magenta default '~f [email protected]'
#!/bin/sh
if [ "`hostname -s`" != "tremens" ]; then
echo "unset imap_passive"
else
echo "set imap_passive"
fi
#!/bin/sh
if [ "`hostname -s`" != "tremens" ]; then
echo "set pgp_use_gpg_agent"
else
echo "unset pgp_use_gpg_agent"
fi
unset sig_on_top
# default gmail configuration
folder-hook 'imaps://.*imap.gmail.com' unset record
set imap_keepalive=900
set imap_idle
set imap_check_subscribed
unset trash
# see http://www.google.com/support/forum/p/gmail/thread?tid=2885631ec52cdf16
set imap_peek=no
# imap passive checker
source 'bash ~/Dropbox/Mutt/detect-imap_passive.sh|'
# default for outgoing mail
set from="Ryan Tucker <[email protected]>"
bind editor <space> noop
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
macro index gs "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to Sent Mail"
macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
macro index gl "<change-folder>?<search>Lists<enter><enter>" "Browse mailing lists"
macro index,pager S "<save-message>=[Gmail]/Spam<enter><enter>" "mark message as spam"
folder-hook 'imaps://.*imap.gmail.com/[Gmail]/Spam' \
'macro index,pager H "<save-message>=INBOX<enter>" "mark message as ham"'
account-hook . 'unset imap_pass'
# [email protected]
account-hook imaps://[email protected]@imap.gmail.com \
'set imap_pass=NOPE'
folder-hook imaps://[email protected]@imap.gmail.com \
'set from="Ryan Tucker <[email protected]>" \
postponed=imaps://[email protected]@imap.gmail.com/[Gmail]/Drafts \
folder=imaps://[email protected]@imap.gmail.com/ \
smtp_url=smtps://[email protected]@smtp.gmail.com/ \
smtp_pass=NOPE \
signature=~/Dropbox/Mutt/signature.rit'
# [email protected]
account-hook imaps://[email protected]@imap.gmail.com \
'set imap_pass=NOPE'
folder-hook imaps://[email protected]@imap.gmail.com \
'set from="Ryan Tucker <[email protected]>" \
postponed=imaps://[email protected]@imap.gmail.com/[Gmail]/Drafts \
folder=imaps://[email protected]@imap.gmail.com/ \
smtp_url=smtps://[email protected]@smtp.gmail.com/ \
smtp_pass=NOPE \
signature=~/Dropbox/Mutt/signature.sodtech'
# [email protected]
account-hook imaps://[email protected]@imap.gmail.com \
'set imap_pass=NOPE'
folder-hook imaps://[email protected]@imap.gmail.com \
'set from="Ryan Tucker <[email protected]>" \
postponed=imaps://[email protected]@imap.gmail.com/[Gmail]/Drafts \
folder=imaps://[email protected]@imap.gmail.com/ \
smtp_url=smtps://[email protected]@smtp.gmail.com/ \
smtp_pass=NOPE \
signature=~/Dropbox/Mutt/signature.gmail'
set folder=imaps://[email protected]@imap.gmail.com
mailboxes =INBOX
set spoolfile=+INBOX
set folder=imaps://[email protected]@imap.gmail.com
mailboxes =INBOX
set folder=imaps://[email protected]@imap.gmail.com
mailboxes =INBOX
unset folder
# SYMLINK:
# ln -s /home/rtucker/Dropbox/Mutt/muttrc /home/rtucker/.muttrc
# Various client settings
set query_command="lbdbq %s"
set copy=no
#set beep_new
#set ascii_chars=yes
set reverse_name
set move=no
unset mark_old
set forward_quote
set include
set fast_reply=yes
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/Dropbox/Mutt/certificates
set mail_check=90
set timeout=15
# Alternate e-mail addresses that are also me
alternates (rtucker@gmail\.com), (rtucker@([a-zA-Z0-9\-]\.)?hoopycat.com),\
(rst7983@(g\.)?rit\.edu), (ryan@hoopycat\.com)
# Set headers I want to see
ignore *
unignore date from subject to cc
unignore x-mailing-list: posted-to:
unignore x-mailer:
# Where the mailbox lives
#set folder=~/Dropbox/Mutt/Maildir
#set mbox_type=Maildir
# Local settings
source ~/.muttrc.local
# Color settings
source ~/Dropbox/Mutt/colors
# Where to store email aliases for people I email
set alias_file=~/Dropbox/Mutt/aliases
source ~/Dropbox/Mutt/aliases
# Mailbox-related settings
source ~/Dropbox/Mutt/mailboxes
# Mailing lists
source ~/Dropbox/Mutt/mailinglists
# PGP/GPG Settings
set crypt_autosign
set crypt_replyencrypt
set crypt_replysignencrypted
set pgp_show_unusable=no
# currently broken on tremens
#set pgp_use_gpg_agent
source 'bash ~/Dropbox/Mutt/detect-pgp_use_gpg_agent.sh|'
# Folder hooks and other hook settings
source ~/Dropbox/Mutt/hooks
# Random and Weird Settings
# vim: don't highlight matching (), no modelines, line width 75, no autoindent,
# spellchek
set editor="vim -c 'set noshowmatch modelines=0 tw=75 et noai spell'"
# show 7 lines of other mail from inbox when reading an e-mail
set pager_index_lines=7
# formats
set folder_format="%t(%3.0N) %2C. %f"
set index_format="%4C%Z%-15.15L %[%a %b %d %H:%M] (%4l) %s"
# html handling
alternative_order text/plain text/html
auto_view text/html application/msword
# xterm stuff
set xterm_set_titles=yes
set xterm_icon="%?n?NEW:%n ?%?b?INC:%b ?Mutt"
set xterm_title="%v %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?]"
# turn off sidebar
set sidebar_visible=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment