Skip to content

Instantly share code, notes, and snippets.

@marbu
Created March 19, 2017 13:07
Show Gist options
  • Save marbu/462a7b0e44064ca5184144eac5f23f61 to your computer and use it in GitHub Desktop.
Save marbu/462a7b0e44064ca5184144eac5f23f61 to your computer and use it in GitHub Desktop.
mutt config
#
# General
#
set send_charset = "us-ascii:utf-8"
set signature = "~/.mutt/sig"
set sort = threads
# Color scheme
source ~/.mutt/colors.foobar
# Store message headers locally to speed things up.
# If hcache is a folder, Mutt will create sub cache folders for each account
# which may speeds things up even more.
set header_cache = ~/.cache/mutt
# Store messages locally to speed things up, like searching message bodies.
# Can be the same folder as header_cache.
# This will cost important disk usage according to your e-mail amount.
# set message_cachedir = "~/.cache/mutt"
#
# SSL hardening
#
set ssl_force_tls=yes
set ssl_starttls=yes
#set ssl_use_sslv2=no
set ssl_use_sslv3=no
set ssl_use_tlsv1=no
set ssl_use_tlsv1_1=no
set ssl_use_tlsv1_2=yes
set ssl_verify_dates=yes
set ssl_verify_host=yes
#
# GnuPG
#
set pgp_replyencrypt=yes
set pgp_replysign=yes
set pgp_replysignencrypted=yes
set pgp_show_unusable=no
set pgp_sign_as=FOOBARBAZ
# create a pgp/mime encrypted attachment
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --encrypt-to FOOBARBAZ --textmode --armor --always-trust -- -r %r -- %f"
# create a pgp/mime encrypted and signed attachment
set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --encrypt-to FOOBARBAZ --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
send-hook . 'unset pgp_autosign; unset pgp_autoencrypt'
send-hook '~t foo@gmail.com' 'set pgp_autosign; set pgp_autoencrypt'
send-hook '~t bar@gmail.com' 'set pgp_autosign'
#
# IMAP General
#
# Subscribe to all imap directories
set imap_check_subscribed
# Keep IMAP connection alive by polling intermittently (time in seconds).
set imap_keepalive = 300
# Allow Mutt to open new imap connection automatically.
unset imap_passive
# How often to check for new mail (time in seconds).
set mail_check = 120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment