Last active
October 1, 2017 23:44
-
-
Save keegoid/13c7b2d66196442b500f to your computer and use it in GitHub Desktop.
A Mutt config file with PGP, Gmail settings and storing aliases and sigs in Dropbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A basic .muttrc for use with Gmail and GPG | |
set imap_user="###@gmail.com" | |
set imap_pass="###" | |
set smtp_url="smtp://###@[email protected]:587/" | |
set smtp_pass="###" | |
set from="###@gmail.com" | |
set realname="###" | |
set editor="vi" | |
set folder="imaps://imap.gmail.com:993" | |
set spoolfile="+INBOX" | |
set postponed="+[Gmail]/Drafts" | |
set record="+[Gmail]/Sent Mail" | |
set imap_check_subscribed | |
set hostname=gmail.com | |
set mail_check=120 | |
set timeout=300 | |
set imap_keepalive=300 | |
set header_cache=~/.mutt/cache/headers | |
set message_cachedir=~/.mutt/cache/bodies | |
set certificate_file=~/.mutt/certificates | |
set move=no | |
set include | |
set sort=threads | |
set sort_aux=reverse-last-date-received | |
set sort_alias=alias | |
set reverse_alias=yes | |
set auto_tag=yes | |
set sig_dashes=no | |
# pgp settings | |
set crypt_replyencrypt=yes | |
set crypt_replysign=yes | |
set crypt_replysignencrypted=yes | |
set crypt_verify_sig=yes | |
set pgp_sign_as=0x### | |
set pgp_show_unusable=no | |
set pgp_use_gpg_agent=yes | |
# gpg2 commands | |
set pgp_clearsign_command="gpg2 --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" | |
set pgp_decode_command="gpg2 --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" | |
set pgp_decrypt_command="gpg2 --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" | |
set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg2 --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" | |
set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg2 %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" | |
set pgp_export_command="gpg2 --no-verbose --export --armor %r" | |
set pgp_import_command="gpg2 --no-verbose --import %f" | |
set pgp_list_pubring_command="gpg2 --no-verbose --batch --quiet --with-colons --list-keys %r" | |
set pgp_list_secring_command="gpg2 --no-verbose --batch --quiet --with-colons --list-secret-keys %r" | |
set pgp_sign_command="gpg2 --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" | |
set pgp_verify_command="gpg2 --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" | |
set pgp_verify_key_command="gpg2 --verbose --batch --fingerprint --check-sigs %r" | |
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 | |
# Gmail-style keyboard shortcuts | |
macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message" | |
macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[Gmail]/Trash\"\n\ | |
<delete-message>" "Gmail delete message" | |
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 gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages" | |
macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment