# $Id: sample.muttrc,v 1.3 2000/03/01 18:10:30 roessler Exp $ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Bart's personal .muttrc (Mutt 0.92.5) # # 2001/06/04 heavily modifed and customized # # The format of this file is one command per line. Everything after a pound # sign (#) is a comment, unless a backward slash (\) precedes it # # Note: $folder should be set _before_ any other path vars where `+' or `=' # is used because paths are expanded when parsed # source ~/.mutt/aliases # Mail Folder set folder=~/mail # where i keep my mailboxes set alias_file=~/.mutt/aliases # where I keep my aliases set spoolfile = +inbox # Default spoolfile set abort_nosubject=ask-yes # don't allow for empty subject set abort_unmodified=yes # don't allow for empty messages unset allow_8bit # never do Q-P encoding on legal 8-bit chars unset arrow_cursor # use highlighted message line by default set ascii_chars # use ASCII instead of ACS chars for threads unset askbcc # ask for BCC on message send unset askcc # ask for CC on message send set attach_split # handle each attachement separately set attribution="* %n <%a> [%(%y%m%d %H:%M)]:" # how to attribute replies set autoedit # go to the editor right away when composing unset auto_tag # always operate on tagged messages set beep # beep on errors set beep_new # beep on new mail set bounce_delivered # set Delivered-To when bouncing set certificate_file=~/.mutt/certificates # trusted certs file set charset="iso-8859-1" # character set for your terminal set check_new # search for new messages unset collapse_unread # don't colapse threads with unread messages unset confirmappend # don't ask me if i want to append to mailboxes set confirmcreate # prompt when creating new files set copy=yes # always save a copy of outgoing messages set date_format="!%a %b %d, %Y at %I:%M:%S%p %Z" #set default_hook="~f %s | ~t %s" set delete=yes # purge deleted messages without asking set delete_untag # untag messages when deleting them set edit_headers # let me edit the message header when composing set editor="vim -c ':0;/^Subject: ' -c ':noh'" # start editor on the Subject set encode_from # use Quoted Printable, if ^From in a mail. set fast_reply # skip initial prompts when replying set fcc_attach # keep attachments in copies of sent messages? set followup_to # always add a follow up line on replies unset force_name # don't force new folder creation on FCC set forward_decode # weed and MIME decode forwaded messages unset forward_decrypt # decrypt PGP msg, if mime_forward !mime_fw_d set forward_format="[%a: %s]" # subject to use when forwarding messages unset forward_quote # quote fwd'ed msg, if not mime_forward #set hdr_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s" #set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index set hdrs # include `my_hdr' lines in outgoing messages unset header # include message header when replying set help # show the help lines unset hidden_host # hide hostname part of host set history=200 # number of lines of history to remember set honor_followup_to=yes # Mail-Followup-To header is honored? set hostname="jukie.net" # my DNS domain unset ignore_list_reply_to # ignore Reply-To pointing back to mailinglist set include=yes # always include messages when replying # set implicit_autoview # autoview, if a "copiousoutput" is in mailcap. set indent_string="> " # change this and I'll kill you! ;-) #set locale="C" # locale to use for printing time set mailcap_path="~/.mailcap:/etc/mailcap" set mailcap_sanitize # remove ugly chars from mailcap % expands. set mail_check=5 # how often to poll for new mail set mark_old # i don't care about whether a message is old unset markers # *** no '+' *** set mbox=+mbox # where to store read messages set mbox_type=mbox # create maildir type mailboxes set menu_scroll # scroll on last line of menu (set) set meta_key # Do interpret Alt-x as ESC x unset metoo # don't remove my address when replying set mh_purge # remove messages marked as deleted from MH set mime_forward=ask-no # use message/rfc822 type to forward messages unset mime_forward_decode # decode messages when forwarding with MIME set move=no # don't move messages to mbox automatically #set pager=less # some people prefer an external pager set pager_context=3 # no. of lines of context to give when scrolling #set pager_format="-%S- %-20.20f %s" # format of the pager status bar set pager_index_lines=9 # how many index lines to show in the pager set pager_stop # don't move to the next message on next-page set postpone=ask-yes # ask for postponing when doing an abort set postponed=+postponed # mailbox to store postponed messages in #set post_indent_string='---end quoted text---' set pipe_split # split tagged messages when using "|" set print=ask-yes # ask me if I really want to print messages set print_command="a2ps -2" # how to print things (I like to save trees) unset prompt_after # ask me for a command after the external pager exits set quit=yes # ask before quiting set quote_regexp="^( {0,4}-?[>|:%]| {0,4}[a-z0-9]+[>|]+)+" set read_inc=5 # show progress when reading a mailbox set realname="Bart Trojanowski" set recall=ask-yes # prompt to recall postponed messages set record=+archive/now/tx # default location to save outgoing mail set reply_to=yes # always use reply-to if present set reply_regexp="^((re|RE|SV|Re|r e|aw) ?:[ \t]*)*" #set resolve # move to the next message when an action is performed set reverse_alias # attempt to look up my names for people set reverse_name # use my address as it appears in the message # i am replying to unset save_empty # remove files when no messages are left #set save_name # save outgoing messages by recipient, if the set send_charset="us-ascii:iso-8859-1:utf8" # other charsets #set sendmail="/usr/lib/sendmail -oi -oem" # how to deliver mail #set sendmail="/usr/local/exim/bin/exim -oi -oem" # how to deliver mail set sendmail="~/bin/mysendmail" set shell="/bin/bash" # program to use for shell escapes set signature="~/.signature" # file which contains my signature set sig_dashes # Add dashes above my signature set smart_wrap # Try to be smart when wrapping #color markers # color markers, if desired # I subscribe to a lot of mailing lists, so this is _very_ useful. This # groups messages on the same subject to make it easier to follow a # discussion. Mutt will draw a nice tree showing how the discussion flows. set sort=threads # first sort by threads set sort_aux=date # then by date unset strict_threads # don't be strict about threads #set sort_aux=reverse-date-received # how to sort subthreads #set sort_aux=last-date # date of the last message in thread set sort_alias=alias set sort_browser=reverse-date # how to sort files in the dir browser #set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %l]---(%s)-%>-(%P)---" #set status_on_top # some people prefer the status bar on top #set strict_threads # don't thread by subject set tilde # virtual lines to pad blank lines in the pager # set timeout=0 # timeout for prompt in the index menu set tmpdir=~/tmp # where to store temp files # set to_chars=" +TCF" # set use_8bitmime # enable the -B8BITMIME sendmail flag unset use_domain # don't qualify local addresses with $domain # set use_envelope_from=yes # use if sending via esmtp # set use_from # always generate the `From:' header field set user_agent # Create User-Agent: Mutt/ header. #set visual=vim # editor invoked by ~v in the builtin editor #unset wait_key # prompt when a pipe returns normal status set wrap_search # Wrap search to top/bottom. set write_inc=25 # show progress while writing mailboxes # only enable the following IFF you have sendmail 8.8.x or you will not # be able to send mail!!! #set dsn_notify='failure,delay' # when to return an error message #set dsn_return=hdrs # what to return in the error message # http://mark.stosberg.com/Tech/mutt.html #set query_command="lbdbq %s" set query_command="~/bin/mylbdbq %s" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Header fields I don't normally want to see # #ignore * # this means "ignore all lines by default" # I do want to see these fields, though! #unignore from: subject to cc mail-followup-to \ # date x-mailer x-url # this shows how nicely wrap long lines ignore user-agent delivered-to content- errors-to in-reply-to mime-version ignore lines precedence status nntp-posting-host path old-return-path ignore priority >received >>received received references autoforward ignore resent- return-path xref path x400 importance sensitivity ignore original-encoded-information ignore x- List- unignore x-spam x-url x-mailer x-message-flag unignore List-Id List-Archive unignore Message-ID X-Content-Security # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Color definitions # source ~/`cd "$HOME" ; USE=".mutt/term.$TERM" ; if ! [ -r "$USE" ] ; then USE=".mutt/term.default" ; fi ; if ! [ -r "$USE" ] ; then USE="/dev/null" ; fi ; echo "$USE"` mono index bold ~F # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Key bindings # # maps: # alias alias menu # attach attachment menu # browser directory browser # compose compose menu # index message index # pgp pgp menu # postpone postponed message recall menu # generic generic keymap for all of the above # editor line editor # pager text viewer # bind generic previous-entry bind generic next-entry bind generic \n select-entry bind generic \r select-entry bind generic + tag-entry # tag this entry bind generic ';' tag-prefix # apply next command to tags bind generic last-entry bind generic first-entry bind generic q exit bind generic "\e<" first-entry # emacs-like bindings for moving to top/bottom bind generic \e> last-entry bind generic { top-page bind generic } bottom-page bind alias p previous-entry bind alias n next-entry bind attach p previous-entry # prev attachment bind attach n next-entry # next attachment bind attach exit # back to where we came from bind attach view-attach # display it bind index p previous-new # prev message bind index n next-new-then-unread # next message bind index c change-folder # change to another folder macro index i # change to new msgs bind index display-message # show it bind index * flag-message # set 'important flag' bind index \cr read-thread # mark all thread read #macro index \cj :read-thread\n:next-new\n macro index J \Crkn bind index display-message #bind pager "\Cn" next-line #bind pager "\Cp" previous-line bind pager + next-page # page down bind pager previous-line # scroll up in message bind pager next-line # scroll down in message bind pager G group-reply # reply to all recipients bind pager R group-reply # reply to all recipients bind pager \em recall-message # recall a postponed message bind pager % print-message # print bind pager p previous-new # prev new message in index bind pager n next-new-then-unread # next new message in index bind pager exit # back to index bind pager view-attachments # show attachement list bind pager half-down macro index \cb |urlview\n macro pager \cb |urlview\n macro index S s+spam/new\n macro pager S s+spam/new\n macro index W ":unset wait_key\n|spamassassin --add-to-whitelist\n:set wait_key\n" macro pager W ":unset wait_key\n|spamassassin --add-to-whitelist\n:set wait_key\n" macro index V s+spam/random\n macro pager V s+spam/random\n macro index H C+ham\n macro pager H C+ham\n macro index c\n # go to next folder w/ new msgs macro index i "c! \e>" # go to new messages macro index I c>\n # go to mbox folder bind index t tag-entry # tag this entry bind pager t tag-message # tag this entry #macro index \# /bug^M # search for bugs #macro index "\"" ":set realname=\"real hairy macro\"^M:set ?realname^M" # and a comment to boot! #macro index f1 :woohoo! #bind pager G bottom # just like vi and less #macro pager \Ck "|pgp -kaf^M" # a comment is valid here #macro pager X "|morepgp^M" # pipe PGP message to a script #bind editor \cy eol # make ^Y jump to the end of the line # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # User Defined Headers # #my_hdr X-Useless-Header: Look ma, it's a \# sign! # real comment #my_hdr X-Operating-System: `uname -a` my_hdr From: Bart Trojanowski #unmy_hdr To: # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Specify default filename when saving messages # # save-hook [!] # # is provided as default when saving messages from #save-hook mutt- =mutt-mail #save-hook aol\.com +spam #save-hook ^judge +diplomacy # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Multiple spool mailboxes # # mbox-hook [!] # # Read mail in is moved to when is # closed. #mbox-hook =mutt-users.in =mutt-users #mbox-hook +TEST +inbox # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Change settings based upon message recipient # # send-hook [!] # # is executed when sending mail to an address matching #send-hook mutt- 'set signature=~/.sigmutt; my_hdr From: Mutt User ' # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Specify where to save composed messages # # fcc-hook [!] # # is recipient(s), is where to save a copy #fcc-hook joe +joe #fcc-hook bob +bob # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Change settings based on mailbox # # folder-hook [!] # # is executed when opening a mailbox matching folder-hook . my_hdr From: Bart Trojanowski folder-hook . my_hdr X-Message-Flag: folder-hook . my_hdr X-Fnord: folder-hook . my_hdr X-WebTV-Stationery: folder-hook . my_hdr X-Message-Flag: folder-hook . my_hdr X-BeenThere: folder-hook . unmy_hdr To: folder-hook . unmy_hdr Cc: folder-hook +work/xelerance my_hdr From: Bart Trojanowski folder-hook +oclug my_hdr From: Bart Trojanowski folder-hook +oclug/tech my_hdr To: folder-hook +oclug/list my_hdr To: folder-hook +oclug/board my_hdr To: folder-hook +oclug/events my_hdr To: folder-hook +debian my_hdr From: Bart Trojanowski folder-hook +debian/dpkg my_hdr To: folder-hook +debian/devel my_hdr To: folder-hook +debian/newmaint my_hdr To: folder-hook +debian/amd64 my_hdr To: folder-hook +amd64 my_hdr From: Bart Trojanowski folder-hook +amd64/discuss my_hdr To: folder-hook +wifi my_hdr From: Bart Trojanowski folder-hook +wifi/ottawa my_hdr To: Ottawa Wifi folder-hook +ghak my_hdr From: Bartman folder-hook +ghak/worship my_hdr To: GHAK folder-hook +ghak/bofh my_hdr To: BOFH folder-hook +ghak my_hdr X-Message-Flag: Look Out! folder-hook +ghak my_hdr X-Fnord: +++ath folder-hook +ghak my_hdr X-Message-Flag: Message text blocked: ADULT LANGUAGE/SITUATIONS folder-hook +vimperator my_hdr To: folder-hook +linux/janitor my_hdr From: Bart Trojanowski folder-hook +linux/janitor my_hdr To: folder-hook +linux/kernel my_hdr From: Bart Trojanowski folder-hook +linux/kernel my_hdr To: folder-hook +linux/arm-kernel my_hdr From: Bart Trojanowski folder-hook +linux/arm-kernel my_hdr To: folder-hook +linux/aio my_hdr From: Bart Trojanowski folder-hook +linux/aio my_hdr To: folder-hook +linux/security my_hdr From: Bart Trojanowski folder-hook +linux/security my_hdr To: folder-hook +linux/mm my_hdr From: Bart Trojanowski folder-hook +linux/mm my_hdr To: folder-hook +linux/netfilter my_hdr From: Bart Trojanowski folder-hook +linux/netfilter my_hdr To: folder-hook +gpg/users my_hdr From: Bart Trojanowski folder-hook +gpg/users my_hdr To: folder-hook +gpg/devel my_hdr From: Bart Trojanowski folder-hook +gpg/devel my_hdr To: folder-hook +swan/design my_hdr From: Bart Trojanowski folder-hook +swan/design my_hdr To: folder-hook +swan/users my_hdr From: Bart Trojanowski folder-hook +swan/users my_hdr To: folder-hook +swan/bugs my_hdr From: Bart Trojanowski folder-hook +swan/bugs my_hdr To: folder-hook +LanParty my_hdr From: Bartman folder-hook +LanParty my_hdr To: folder-hook +LanParty my_hdr X-Message-Flag: Look Out! folder-hook +OttawaLinuxSymposium my_hdr From: Bart Trojanowski folder-hook +OttawaLinuxSymposium my_hdr To: folder-hook +HireTopTalent my_hdr From: Bart Trojanowski folder-hook +HireTopTalent my_hdr To: folder-hook +work/symbio my_hdr From: Bart Trojanowski folder-hook +xorg/geode my_hdr From: Bart Trojanowski folder-hook +xorg/geode my_hdr To: xorg-driver-geode@lists.x.org #folder-hook . 'set sort=date-sent' #folder-hook mutt 'set hdr_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"' #folder-hook =mutt my_hdr Revolution: \#9 # real comment #folder-hook . 'set reply_regexp="^re:[ \t]*"' # this mailing list prepends "[WM]" to all non reply subjects, so set # $reply_regexp to ignore it #folder-hook +wmaker 'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"' # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Aliases # # alias
[ ,
... ] #alias exam "\# to annoy michael" #alias me Michael Elkins # me! alias mutt-dev Mutt Development List # power users alias mutt-users Mutt User List alias mutt-announce Mutt Announcement List alias wmaker WindowMaker Mailing List # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Mailboxes to watch for new mail # # mailboxes [ ... ] # mailboxes ! \ +bacula/logs \ +work/symbio \ +work/idc \ +work/thirdbrigade +work/3b-bug +work/3b-svn \ +work/xelerance \ +work/soma \ \ +git/git-case \ \ +oclug/announce +debian/devel-announce +debian/security-announce \ +oclug/tech \ \ +git/core \ +xorg/geode \ \ +debian/vcs \ +vimperator \ +xorg/xorg \ \ +logs +work/3b-cron \ \ +swan/design +swan/bugs +swan/users +swan/ipsec \ +wifi/ottawa \ +LanParty +OttawaLinuxSymposium \ +work/otthwjobs \ +ghak/bofh +ghak/worship \ +debian/amd64 +amd64/discuss +debian/dpkg \ +debian/news +debian/devel +debian/newmaint \ +oclug/board +oclug/events +oclug/list \ +linux/janitor +linux/arm-kernel +linux/kernel +linux/aio \ +security/bugtraq +security/linux-focus +security/linux-secnews \ +security/prog +security/basics +security/certification +security/jobs \ +gpg/devel +gpg/devel \ +gpg/users +linux/security-module \ +linux/mm +linux/netfilter \ +HireTopTalent # {localhost:4301}INBOX {localhost:4301}~/mail/ghak \ # {localhost:4301}~/mail/oclug {localhost:4301}~/mail/pm # set imap_user=bart #set imap_preconnect="ssh -f -L 4301:nexus.carleton.ca:143 \ # bart@nexus.carleton.ca sleep 30 < /dev/null > /dev/null" # "ssh -p 2222 -f -L 4343:imapserver:143 userid@unixbox sleep 30" #fcc-hook "~t imap_domain_name" '{localhost:4301}Sent Items' # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Specify the order of the headers to appear when displaying a message # # hdr_order [ ... ] # unhdr_order * # forget the previous settings hdr_order delivery-date from to cc subject x-message-flag # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Identify mailing lists I subscribe to # # lists [ ... ] #lists mutt-dev mutt-users oclug-board oclug-events oclug design users ipsec \ # gnupg-devel gnupg-users worship-ghak linux-kernel netfilter lanparty # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Automatically use entries from ~/.mailcap to view these MIME types # # auto_view [ ... ] auto_view /gif auto_view application/ms-tnef auto_view application/pgp-signature auto_view application/postscript auto_view application/rtf auto_view application/x-chess auto_view application/x-gunzip auto_view application/x-gunzip auto_view application/x-gunzip auto_view application/x-gzip auto_view application/x-gzip auto_view application/x-lotus-notes auto_view application/x-rath auto_view application/x-tar-gz auto_view image/* auto_view text/enriched auto_view text/html auto_view text/x-vcard alternative_order text/enriched text/plain text # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Scoring # # score # # 9999 and -9999 are special values which cause processing of hooks to stop # at that entry. If you prefix the score with an equal sign (=), the score # is assigned to the message and processing stops. #score '~f ^me@cs\.hmc\.edu$' 1000 #score '~t mutt | ~c mutt' =500 #score '~f aol\.com$' -9999 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # I use Mutt on several different machines, so I put local config commands # in a separate file so I can have the rest of the settings the same on all # machines. # #source ~/.muttrc-local # config commands local to this site # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # PGP stuff # # set pgp_autosign=yes # always sign set pgp_autoencrypt=no # do not try to encrypt all the time #set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u" set pgp_long_ids=no # do not show 64 bit PGP key IDs set pgp_replyencrypt=yes # encrypt replies to encrypted messages set pgp_replysign=yes # automagically sign signed messages #set pgp_retainable_sigs=yes # nested encrypted(signed(mail)) set pgp_show_unusable=no # do not show faulty keys set pgp_sign_as="2289688F" # specify a key for signage #set pgp_sign_micalg="" # specify an algorithm for signage #set pgp_strict_enc # use Q-P encoding when needed for PGP set pgp_timeout=3600 # after 60 minutes forget the passphrase set pgp_verify_sig=yes # check signatures if present set pgp_sort_keys=address # sort keys by address set pgp_create_traditional=no # do not create non-detached sigs set fcc_clear # do not encrypt localy stored messages source ~/.mutt/gpg.rc # EOF