# muttrc # Erik Scharwaechter # 2008-07-31 ##### GENERIC SETTINGS ##### set folder="~/mail" # mailbox location set mbox_type=maildir # use maildir folders set spoolfile=+inbox # display +Inbox on startup set mbox=+inbox # default mailbox set record=+sent # save sent mails here set postponed=+drafts # save drafts here set quit=ask-yes # ask before quitting ##### WRITING MAIL ##### set realname="Erik Scharwaechter" # realname set from="erik@diozaka.org" # address to use for From: header set use_from=yes # add a From: header set signature="~/.signature" # append the signature set edit_headers=no # don't show headers when writing mail set editor="vim" # use vim for writing set include=yes # cite by default set mime_forward # forward message as MIME attachments set hostname="diozaka.org" # use @diozaka.org in Message-Id set sendmail="/usr/bin/msmtp" # use msmtp for sending mail set query_command="abook --mutt-query '%s'" # search in abook address book set recall=no # do not recall messages when writing a new one ##### INDEX ##### set sort=threads # sort by threads set mark_old=no # don't mark old messages with "O" set collapse_unread=no # don't collapse threads containing unread messages set rfc2047_parameters # decode MIME charset parameters set confirmappend=no # append without asking set move=no # don't move read mail to a special folder set delete=ask-yes # prompt for deletion set print_command="muttprint" # print with muttprint ##### PAGER ##### set pager_index_lines=6 # show 6 lines of the index above the pager set pager_stop # don't jump to next message when scrolling set tilde # show tilde at non-existant lines set smart_wrap # wrap lines at the end of a word set markers=no # don't show "+" at wrapped lines set wrapmargin=5 # 5 letters margin behind wrapped lines set pgp_auto_decode # try to decode inline pgp set quote_regexp="^([ \t]*[|>])+" # only these are valid quoting characters set folder_format="%2C %t %N %f%> %d (%s)" #### HOOKS ##### folder-hook . set sort=threads folder-hook . set index_format='%4C\ %Z\ %3M\ %{%F}\ %-20.20n\ %s' # show From: folder-hook . push # collapse all threads folder-hook +sent set sort=date folder-hook +sent set index_format='%4C\ %Z\ %3M\ %{%F}\ %-20.20t\ %s' # show To: save-hook . +archive # save mail to +archive by default ##### HEADERS ##### # show only these headers ignore * unignore from resent-from reply-to date to cc subject hdr_order From: Resent-From: Reply-To: Date: To: Cc: Subject: # add custom headers my_hdr X-Operating-System: `uname -sr` my_hdr X-Mailer: `mutt -v | head -n1` my_hdr X-Editor: `vim --version | grep Vi` #my_hdr X-Archive: expiry=0 ##### KEY BINDINGS ##### bind generic noop bind index collapse-thread # show/hide single thread bind index collapse-thread # show/hide single thread bind index c collapse-all # show/hide all threads bind index - next-unread-mailbox bind pager previous-line # show previous line in pager bind pager next-line # show next line in pager bind browser T toggle-mailboxes # switch file system <-> mailboxes bind browser y exit # leave browser macro pager,index R "T~N;N^T.*" "mark new messages as read" macro pager,index G "!fetchmail" "invoke fetchmail" macro pager,index a "| abook --add-email" "add sender to abook" macro pager,index v "| less" "view complete message" macro index,pager y "?" "show incoming mailboxes list" ##### SCORING ##### score "~A" 1000 set score_threshold_delete=0 ##### COLORS ##### color normal default default color search brightyellow default color hdrdefault cyan default color header yellow default "^Subject:" color signature green default color attachment brightwhite default color quoted green default color quoted1 cyan default color quoted2 green default color quoted3 cyan default color tilde blue default color tree white default color indicator black white color status black white color body brightwhite default "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" # email addresses color body brightwhite default "(http|ftp|news|telnet|finger)://[^) \">\t\r\n]*" # links color body brightwhite default "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" # email links color body brightwhite default "(^| )[*_][a-zA-Z0-9 ]*[*_][,.; ]" # bold color body brightwhite default "(^| )[;:]-*[)>(<|D\\/]" # smileys color index cyan default "~g" # signed mail color index green default "~G" # encrypted mail color index red default "~=" # duplicates color index red default "~h 'X-Spam-Status: Yes'" # spam color index yellow default "~F" # flagged messages color index brightwhite default "~N" # new mail color index brightcyan default "~N ~g" # new signed mail color index brightgreen default "~N ~G" # new encrypted mail color index brightred default "~N ~=" # new duplicates color index brightred default "~N ~h 'X-Spam-Status: Yes'" # new spam color index brightyellow default "~N ~F" # new flagged messages ##### MAILBOXES ##### mailboxes =inbox \ =archive \ =business \ =octod \ =devtty0 \ =spam \ =killfile \ =drafts \ =sent \ # and more... ##### MAILINGLISTS ##### unlists * unsubscribe * subscribe debian-security # and more... ##### MISC ##### alternates diozaka@gmx.de alternates erik@diozaka.org # and more... ##### CRYPT SETTINGS ##### set crypt_replyencrypt=yes # Encrypt replies on encrypted mail set crypt_replysign=yes # Sign replies on signed mail set crypt_replysignencrypted=yes # Sign replies on encrypted mail set crypt_timestamp=yes # include timestamp in pgp/smime output (antispoof) set crypt_verify_sig=yes # verify signatures automatically ##### GPG SETTINGS ##### # WARNING: These commands contain my GPG Key ID, you have to change 0x42B654AB to # your own ID! 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 0x42B654AB -- -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 0x42B654AB -- -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_good_sign="^gpg: Good signature from" set pgp_sign_as=0x42B654AB set pgp_autosign=no set pgp_autoencrypt=no set pgp_replyencrypt=yes # auto-encrypt if an encrypted message is answered set pgp_timeout=300 # forget passphrase after 5 minutes set pgp_create_traditional=no # never use old-style PGP set pgp_ignore_subkeys=yes # on OpenPGP keys only show the main key, not the sub. set pgp_long_ids=no # display 64bit PGP key-ids (don't change this!) set pgp_retainable_sigs=no # disable retainable signatures. set pgp_show_unusable=no # don't show unusable PGP keys in menu set pgp_strict_enc=yes # allways use QP enc. with PGP. ##### S/MIME SETTINGS ##### # WARNING: Set your correct smime_default_key! set smime_is_default=no # use pgp as default set smime_timeout=300 set smime_default_key="12345678.0" set smime_ca_location="~/.smime/ca-bundle.crt" set smime_certificates="~/.smime/certificates" set smime_keys="~/.smime/keys" set smime_encrypt_with="des3" set smime_pk7out_command="openssl smime -verify -in %f -noverify -pk7out" set smime_get_cert_command="openssl pkcs7 -print_certs -in %f" set smime_get_signer_cert_command="openssl smime -verify -in %f -noverify -signer %c -out /dev/null" set smime_get_cert_email_command="openssl x509 -in %f -noout -email" set smime_import_cert_command="smime_keys add_cert %f" set smime_encrypt_command="openssl smime -encrypt -%a -outform DER -in %f %c" set smime_sign_command="openssl smime -sign -signer %c -inkey %k -passin stdin -in %f -certfile %i -outform DER" set smime_decrypt_command="openssl smime -decrypt -passin stdin -inform DER -in %f -inkey %k -recip %c" set smime_verify_command="openssl smime -verify -inform DER -in %s %C -content %f" set smime_verify_opaque_command="\ openssl smime -verify -inform DER -in %s %C || \ openssl smime -verify -inform DER -in %s -noverify 2>/dev/null"