# $ Last Modified: Wed 23 Mar 2005 09:13:08 PM MST $ # hewbert # --[.muttrc]--------------------------------------------------- set mbox_type=Maildir set folder=/home/josh/mail/ set mbox=/home/josh/mail/inbox/ # location of inbox set record=/home/josh/mail/outbox/ # location of outbox set postponed=/home/josh/mail/postponed # location of postponed messages set alias_file=~/mail/aliases.mutt unset mark_old # undread old messages are still unread after quitting # Execute signature (hence the trailing pipe) #set signature='~/bin/quote.php|' set signature='~/.signature' # Check these for new mail mailboxes =Inbox mailboxes =FreeBSD # inbox is my home set spoolfile=~/mail/inbox/ set noconfirmappend # set: prompt for confirmation on appending mail to folder set postpone=ask-yes # ask me before postponing set delete=ask-yes # ask me before deleting set quit=yes # skip exit prompt ignore * # weed out all headers # Now specifically set them: unignore date from: to cc subject organization x-mailer user-agent auto_view text/html # --------------------------------------------------- # ---/ (G)PGP Stuff /--- # 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 0xCF1E6E3F -- -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 0xCF1E6E3F -- -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 # autosign all outgoing mails set pgp_replyencrypt # autocrypt replies to crypted set pgp_replysign # autosign replies to signed set pgp_replysignencrypted # autosign replies to sig/crypt set pgp_retainable_sigs # nested mime fmt sigs set pgp_timeout=2400 # passphrase timeout set pgp_sort_keys=trust # sort order unset pgp_show_unusable # don't display revoked et al. #set pgp_autosign=yes set pgp_sign_as=0xCF1E6E3F set pgp_good_sign="^gpg: Good signature from" # --------------------------------------------------- set read_inc=10 # '10': show count number for every tenth mail unset status_on_top # set: present the status bar at top, ie before the index set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %?l? %l?]---(%s/%S)-%>-(%P)---" set mail_check=60 # Check mail every 60 seconds. set timeout=30 # 30 sec. of inactivity before checking set beep_new # Beep when new mail arrives set hostname="hewbert.com" set check_new # search for new messages in maildir/MH folders. set confirmcreate # prompt for confirm when saving to non existing mbox set delete_untag # untag messages when marking them for deletion. set edit_headers # put headers in editor when composing messages set encode_from # use Quoted-Printable, if ^From in a mail. set fast_reply # do not ask for to, subject,... when replying. set markers=no # put a '+' at the beginning of wrapped lines. set mh_purge # remove messages marked as deleted from MH folders. set pager_stop # Don't jump to next message at end of message. set pager_context=3 # no. of lines of context to give when scrolling #set pager_format="-%S- %C/%T: %-20.20n %s" # format of the pager status bar set pager_format="[%4C/%4m] (%S%Z) %%=%N $i %> [%lL]" set pager_index_lines=6 # how many index lines to show in the pager unset save_empty # remove mailbox when last message is removed. set smart_wrap # wrap long lines at word boundary. #set sort_re # set: only put a child in a thread, if starts with Re: set user_agent # Create User-Agent: Mutt/ header. #set index_format="%4C %Z %{%b %d} %-15.15L %?M?(#%03M)&(%4l)? %s" set include=yes # always include messages when replying set indent_string="> " # how to quote replied text # Default to sorting by threads (for maillists) folder-hook . set strict_threads folder-hook . set sort=threads folder-hook . set sort_aux=date-sent # Inbox will be sorted by date folder-hook "!" unset strict_threads folder-hook "!" set timeout=5 folder-hook "!" set sort=date-received #folder-hook "." unset strict_threads #folder-hook "." push "" #set editor="vim +':set textwidth=72' +':set wrap' +\`awk '/^$/ {print i+2; exit} {i++}' %s\` %s" # First blank line (after header) #set editor="vim +/^$ -c 'set tw=72'" # Second blank line (ie: bottom-posting) set editor="vim +/^$ +/^$ -c 'set tw=72'" #set visual=vim # editor invoked by ~v in the builtin editor # #######################/ Colors /############################# color attachment magenta default # .. color body cyan default "ftp://[^ ]*" color body brightgreen default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]" color body cyan default "" color bold green default # .. color error red default # global color header yellow default "^cc: " color header green default "^date: " color header yellow default "^from " color header brightcyan default "^from: " color header yellow default "^newsgroups: " color header yellow default "^reply-to: " color header brightcyan default "^subject: " color header green default "^to: " color header yellow default "^x-mailer: " color header yellow default "^message-id:" color header yellow default "^Organization:" color header yellow default "^Organisation:" color header yellow default "^User-Agent:" color header yellow default "^message-id: .*pine" color indicator black magenta # index color markers red default # index color message white blue # index color normal white default # pager body color quoted cyan default color quoted1 yellow default color quoted2 red default color quoted3 green default color quoted4 cyan default color quoted5 yellow default color quoted6 red default color quoted7 green default color signature brightred default # pager body color status white black # status bar default: black white color tilde blue default # pager body color tree brightcyan default # index color underline yellow default color body yellow default "[;:]-[)/(|]" color body yellow default "[;:][)/(|]" color body brightblue default "(http|ftp|news|telnet|finger)://[^ ]*" color index green default ~N # New color index cyan default ~O # Old color index magenta default ~F # Flagged color index blue default ~T # Tagged color index red default ~D # Deleted color index yellow default '~s Grape' color index yellow default '~s Peach' color index yellow default '~s Web\ Help:' # #################/ Bindings /##################### bind attach ' ' select-entry ## ============================ ## Bindings for index and pager ## ============================ bind index \t next-new bind pager \t next-new bind index ' ' next-unread bind pager ' ' next-unread bind index V show-version bind pager V show-version bind index A create-alias bind pager A create-alias macro index S s=Spam macro pager S s=Spam macro index H s=ham macro pager H s=ham #macro pager F 'firefox -remote "openurl(, new-tab)"' 'Follow links in w3m' macro pager \cb |urlview\n ## ============================================== ## Bindings for editing and reloading the .muttrc ## ============================================== macro generic ,ve "!Eterm -e vim ~/.muttrc &\r" macro generic ,vu ":source ~/.muttrc\r" macro generic ,va "!Eterm -e vim ~/.mutt.aliases &\r" ## These run fetchmail (or wake up the daemon) macro pager G "!getmail\r" macro index G "!getmail\r" ## ================== ## Bindings for index ## ================== bind index P recall-message bind index s save-message bind browser x check-new bind index next-page bind index previous-page bind index x sync-mailbox bind index a tag-prefix bind index \; tag-entry bind index t tag-entry macro index ,l "l~N ! ~p\n" macro index ,n "l~N\n" # Mark all as read. macro index M ".*\rN.*\r" "Mark all messages in this mailbox as read" # ====================================== # Quickly change to my favorite folders: # ====================================== macro index "\\S" "c=sent\r" macro pager "\\S" "c=sent\r" macro index I "c=inbox\n" "Go to Inbox" macro pager I "c=inbox\n" "Go to Inbox" macro index ",F" "c=FreeBSD\r" macro pager ",F" "c=FreeBSD\r" # =========================== # Bindings for pager # =========================== bind pager / search bind pager L list-reply bind pager b bounce-message bind pager f forward-message bind pager m mail bind pager g group-reply bind pager j next-line bind pager k previous-line bind pager : enter-command bind pager p previous-undeleted bind pager n next-undeleted bind pager \n next-new bind compose \n send-message bind compose s send-message bind pager ,p print-message macro pager J "!gpg --keyserver wwwkeys.eu.pgp.net --recv-key " "Get PGP Key" macro pager K "!gpg --lsign-key " "Sign PGP Key" macro pager "i" "?" macro index "i" "?" macro compose S "!gpg --clearsign\ny" "clearsign message" # Cursor movement: bind pager previous-line bind pager next-line bind pager exit bind pager view-attachments bind attach exit bind attach view-attach bind index display-message # ---/ Some Headers /--- # my_hdr X-URL: http://www.hewbert.com/ my_hdr X-PGP-Key: http://www.hewbert.com/pgp.asc