Please bear with us as we work to restore functionality to dotfiles.org.
easy color scheme, gpg support, supports gmail folders and gmail smtp.
set folder="imaps://imap.gmail.com:993/"
set record="+[Gmail]/Sent Mail"
set spoolfile="+INBOX"
set postponed="+[Gmail]/Drafts"
set imap_user="user.name@gmail.com"
set imap_pass="supersecretpassword"
set smtp_url="smtp://user.name@smtp.gmail.com:587/"
set smtp_pass="supersecretpassword"
#set sendmail="/usr/local/bin/esmtp -vv -X /tmp/esmtp.log" # how to deliver mail
set realname="FirstName LastName"
set edit_headers # display and update header information during compose
set envelope_from="yes" # auto-set from in reply
set mail_check="60" # Check for new mail every minute
set imap_check_subscribed="yes" # Check 'subscribed' folders only
set imap_list_subscribed="yes" # List only 'subscribed' folders
set header_cache="~/.mutt/cache/headers" # Location to save cached mail headers
set message_cachedir="~/.mutt/cache/bodies" # Location to save cached mail bodies
set certificate_file="~/.mutt/certs" # SASL2 certificate location
set move="no" # Don't move read mail
set copy="no" # Don't keep a localized copy of sent mail
set fast_reply="yes" # Initial prompt for recipient and subject bypassed on reply
set timeout="60" # Check for mail every minute
set editor="vim +':set textwidth=72' +':set wrap'" # Set vim as default editor
set sort="threads" # Show message threads by default
set sort_alias= alias # Sort by alias
set reverse_alias=yes #
#set index_format="%4C %Z %{%b %d} %-15.15F (%?l?%4l&%4c?) %s" # column format
set pager_index_lines=15 # Add an index on top when reading mail (awesome)
ignore * # Draconian header weed
unignore from date subject to cc X-mailer
unignore posted-to:
auto_view text/html # Use ~/.mailcap coupled with links2 to view HTML email in text
## gnupg stuff - be sure to replace my key (B6724E04) with yours
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0xB6724E04 -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0xB6724E04 -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
set pgp_autosign=yes
set pgp_sign_as=0xB6724E04
set pgp_replyencrypt=yes
set pgp_timeout=1800
set pgp_good_sign="^gpg: Good signature from"
# I prefer this color scheme. Originally pulled from the SLES10 default:
color attachment blue default
color header green default "^message-id:"
color header green default "^x-mailer:"
color header green default "^user-agent:"
color header brightblue default "^date: "
color header brightblue default "^from: "
color header green default "^subject: "
color header brightblue default "^to: "
color header brightblue default "^cc: "
color header brightblue default "^reply-to: "
color index green default ~F
color index red default ~D
color index blue default ~T
color index brightblue default ~N
color indicator brightwhite blue
color markers red default
color quoted green default
color signature brightblue default
color status brightwhite green
color tilde cyan default
color tree blue default
color body black default "(^| )_[-a-z0-9_]+_[,.?]?[ \n]"