# ~/.muttrc: Main Mutt configuration. -*-muttrc-*- # # Jason Blevins # Durham, January 14, 2006 # Identity # -------- set realname="Jason Blevins" set from="jrb11@duke.edu" alternates "jrblevin@sdf.lonestar.org|jrblevin@gmail.com" # Read alias file source ~/.mutt-aliases set alias_file="~/.mutt-aliases" # Use esmtp to forward outgoing mail to the relevant SMTP server. set sendmail="/usr/bin/esmtp -v -X /tmp/esmtp.log" # Mailboxes # --------- # Mail is stored in Maildir format set mbox_type=Maildir # Inbox set spoolfile="~/Mail/INBOX/" # Folder prefix set folder="~/Mail/" # Sent mail folder set record="=sent" # Gmail Drafts folder set postponed="=drafts" # Don't remove read mail from inbox. set mbox="=" # Where new mail may be received (created by offlineimap) source ~/.muttrc-mailboxes # Outgoing Headers # ---------------- # Allow me to edit the headers when composing. set edit_headers=yes # Allow mutt to generate From headers. set use_from=yes # Set sendmail sender -f flag. set envelope_from=yes # Include `my_hdr' lines in outgoing messages. set hdrs # Help people find my PGP key. my_hdr X-PGP-Key: http://jblevins.org/jrblevin.asc # External Programs # ----------------- # Compose mail using vim set editor="vi" # How to print things set print_command="muttprint -p - > ~/inbox/muttprint.ps" # Use the Little Brother Database to look up addresses (see also ~/.lbdbrc). set query_command="lbdbq '%s'" # Use offlineimap to check for new mail. macro index "\Cx\Cn" "offlineimap -o -q -u Noninteractive.Basic" # Use aspell to check spelling set ispell="aspell -e -c" # Appearance # ---------- # Highlight entire line instead of using ->. unset arrow_cursor # Number of lines to show in the pager. set pager_index_lines=6 # Virtual lines to pad blank lines in the pager. set tilde # Format of the index. set index_format="%4C %Z %{%m.%d} %-15.15F (%4c) %s" # Don't display a + on wrapped lines. unset markers # Default sorting method. set sort=threads # Do not show help lines. set nohelp # Enable Display of UTF-8 Characters. set charset=utf-8 # Don't let Page Down move to the next message. set pager_stop # Behavior # -------- # Don't start editor immediately when composing. set autoedit=no # Don't ask me if i want to append. set noconfirmappend # Prompt when creating new files. set confirmcreate # Always save a copy of outgoing messages? set copy=yes # Purge deleted messages without asking. set delete=yes # Skip initial prompts when replying. set fast_reply=yes # Simple quotation text. set attribution="%n wrote:" # When forwarding messages, set the subject to Fwd: subject. set forw_format="Fwd: %s" # Look up addresses in my aliases. set reverse_alias # Use my address as it appears in the message I am replying to. set reverse_name # Keep files even when no messages are left. set save_empty # Always use reply-to if present. set reply_to=yes # Always quote messages when replying. set include # Remove my address from reply-to list. unset metoo # Don't ask about moving messages, just do it. set move=no # Don't save outgoing attachments. unset fcc_attach # When replying to a message sent by me, reply to the recipients instead. unset reply_self # Automatically display as text for mailcap entries with copiousoutput,. set implicit_autoview # MIME # ---- # Ignore HTML email if possible. alternative_order text/enriched text/plain text/html # Always use the mime-types defined in .mailcap. set implicit_autoview=yes # Ask whether to use message/rfc822 type to forward messages. set mime_forward=ask-no # Mailing Lists # ------------- # Reply to the list, not an individual, by default. unset ignore_list_reply_to # Generate Mail-Follow-To on group/lists. set followup_to=yes # Threading # --------- # Use fancy threading characters instead of plain ASCII. unset ascii_chars # Don't collapse threads with new messages. set collapse_unread=no # Displayed Headers # ----------------- # Ignore everything not listed below. ignore * # Show user agent / mailer. unignore user-agent: x-agent: x-mailer: # Show from, date, subject, to, cc, reply-to headers. unignore from date subject to cc reply-to: # Display headers in this order: hdr_order From: Reply-to: To: Cc: Subject: Date: User-Agent: X-Mailer: # Color Theme # ----------- # Format: color object foreground background [condition]. # Colors: white, black, green, magenta, blue, cyan, yellow, red, default. # Index and application color status black blue # status bar color error white red # error messages color indicator white blue # selected message color markers red default color message blue default # Mutt messages color tree red default # Thread tree # Message display color normal white default # Normal pager text color attachment green default # Attachment info color hdrdefault red default # Pager header color signature red default # Signature color tilde cyan default # Tilde color color search brightyellow default # Search patterns # Important headers color header brightred default ^(From|Subject|Date): # Levels of quoted text color quoted yellow default color quoted1 cyan default color quoted2 red default color quoted3 green default # Emphasis color bold red default color underline yellow default # Color definitions when on a mono screen. mono bold bold mono underline underline mono indicator reverse mono error bold # Colorize smileys: :-) ;-) :-/ :-( color body yellow default "[;:]-[)/(|]" color body yellow default "[;:][)/(|]" # *bold* color body brightwhite default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" # _underline_ color body brightwhite default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" # /italic/ color body brightwhite default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" # URLs and email addresses color body magenta default "(ftp|http|git)://[^ ]+" color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+ # GPG Support # ----------- # Automatically verify signed messages. set crypt_verify_sig=yes # Some definitions: # %p - The empty string when no passphrase is needed, the string # "PGPPASSFD=0" if one is needed. # %f - File name on which to operate. # %s - Temporary file containing detached signature. # %a - Expands to $pgp_sign_as. # %r - Expands to a list of key IDs. set pgp_autosign=no set pgp_sign_as=0x7F569169 set pgp_replyencrypt=yes set pgp_timeout=1800 set pgp_verify_sig=yes # Decode application/pgp. set pgp_decode_command="/usr/bin/gpg --charset utf-8 --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" # Verify a signature. set pgp_verify_command="/usr/bin/gpg --no-verbose --charset utf-8 --batch -o - --verify %s %f" # Decrypt a pgp/mime attachment. set pgp_decrypt_command="/usr/bin/gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" # Create a pgp/mime signed attachment. set pgp_sign_command="/usr/bin/gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f" # Create a application/pgp signed (old-style) message. set pgp_clearsign_command="/usr/bin/gpg --charset utf-8 --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f" # Create a pgp/mime encrypted attachment. set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg --charset utf-8 --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" # Create a pgp/mime encrypted and signed attachment. set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg --charset utf-8 %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" # Import a key into the public key ring. set pgp_import_command="/usr/bin/gpg --no-verbose --import %f" # Export a key from the public key ring. set pgp_export_command="/usr/bin/gpg --no-verbose --export --armor %r" # Verify a key. set pgp_verify_key_command="/usr/bin/gpg --verbose --batch --fingerprint --check-sigs %r" # Read in the public key ring. set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r" # Read in the secret key ring. set pgp_list_secring_command="/usr/bin/gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r" # Fetch keys set pgp_getkeys_command="/usr/bin/gpg --recv-keys %r 2> /dev/null" # Pattern for good signatures. set pgp_good_sign="^gpg: Good signature from" # Bayesian Mail Filter (bmf) # -------------------------- # Pipe mail to SDF and classify as spam or ham. macro index S "|ssh sverige.freeshell.org bmf -S\n=spam\n" "SPAM" macro index H "|ssh sverige.freeshell.org bmf -N\n" "HAM" macro pager S "|ssh sverige.freeshell.org bmf -S\n=spam\n" "SPAM" macro pager H "|ssh sverige.freeshell.org bmf -N\n" "HAM"