# login information
set imap_user='<your-username>@drexel.edu'
set imap_pass='<your-password>'
- set from="<your-username>@drexel.edu"
+ set from='<your-username>@drexel.edu'
set use_from=yes # required so msmtp knows which account to use to send mails
# setting your realname is optional, but drexel addresses can be cryptic...
- set realname="<your-realname>"
+ set realname='<your-realname>'
# email server location
set spoolfile=imaps://<your-username>@imap.mail.drexel.edu:993/INBOX
set mail_check=600 # check for new mail every 10 minutes when user is active
set timeout=600 # check for new mail every 10 min. when user is not active
- set editor="/usr/bin/emacs -nw" # use emacs for writing emails
+ set editor='/usr/bin/emacs -nw' # use emacs for writing emails
set edit_headers # allow editing headers while you're in emacs
Since this file contains your password, you should not allow other
# switch FROM field so msmtp changes sending account
# http://home.nyc.rr.com/computertaijutsu/mutt.html
- macro generic "<esc>1" ":set from='<drexel-from-address>@drexel.edu'"
- macro generic "<esc>2" ":set from='<gmail-username>@gmail.com'"
+ macro generic '<esc>1' ":set from='<drexel-from-address>@drexel.edu'"
+ macro generic '<esc>2' ":set from='<gmail-username>@gmail.com'"
# no send2-hook in version 1.4.2.2i
send-hook '~f <drexel-from-address>@drexel.edu' 'set sendmail="/usr/local/bin/msmtp "'
send-hook '~f <gmail-username>@gmail.com' 'set sendmail="/usr/local/bin/msmtp -a gmail"'
The common configuration (these are all optional):
#~/.mutt/common
- set realname="<your-realname>"
+ set realname='<your-realname>'
set move=no # stop asking to "move read messages to mbox"
set mail_check=600 # check for new mail every 10 minutes when user is active
set timeout=600 # check for new mail every 10 minutes when user is not active
- set editor="/usr/bin/emacs -nw" # use emacs as the editor
+ set editor='/usr/bin/emacs -nw' # use emacs as the editor
set edit_headers # editable headers
The Drexel setup:
# see ~/.msmtp for configuration
set sendmail=/usr/local/bin/msmtp
- set from="<drexel-from-address>@drexel.edu"
+ set from='<drexel-from-address>@drexel.edu'
The Gmail setup:
# use msmtp to send outgoing mail to the mailserver
# see ~/.msmtp for configuration
- set sendmail="/usr/local/bin/msmtp -a gmail"
+ set sendmail='/usr/local/bin/msmtp -a gmail'
- set from="<gmail-username>@gmail.com"
+ set from='<gmail-username>@gmail.com'
Firing up `mutt` takes you to your Drexel inbox like you're used to.
You can change directories like your used to with `c`. You switch
# use msmtp to send outgoing mail to the mailserver
# see ~/.msmtp for configuration
- set sendmail="/usr/local/bin/msmtp -a gmail"
+ set sendmail='/usr/local/bin/msmtp -a gmail'
- set from="<gmail-username>@gmail.com"
+ set from='<gmail-username>@gmail.com'
set nopop_delete
- set pop_checkinterval="600"
+ set pop_checkinterval=600
Where the gmail stuff is because I'm sending mail using Gmail when I'm
looking at my Comcast account. This avoids using Comcast as much as
# `Everything You Need To Know To Start Using GnuPG with Mutt'
# http://codesorcery.net/old/mutt/mutt-gnupg-howto
- 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="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0xFC29BDCDF15F5BE8 -- -r %r -- %f"
- set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0xFC29BDCDF15F5BE8 -- -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_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='/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0xFC29BDCDF15F5BE8 -- -r %r -- %f'
+ set pgp_encrypt_sign_command='/usr/lib/mutt/pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0xFC29BDCDF15F5BE8 -- -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=0xFC29BDCDF15F5BE8
set pgp_replyencrypt=yes
set pgp_timeout=1800
- set pgp_good_sign="^gpg: Good signature from"
+ set pgp_good_sign='^gpg: Good signature from'
The above file autosigns all your sent emails (`set
pgp_autosign=yes`), but you can obviously turn that off if you would
Add the folder size to the status bar by adding `%l` or `%L` to
`status_format` in your `~/.muttrc` file. For example
- set status_format="-%r-Mutt: %f %L"
+ set status_format='-%r-Mutt: %f %L'
[Mutt]: http://www.mutt.org/