############################################ # # # greenfly's muttrc example # # # # I actually have my .muttrc split up # # into quite a few files # # but for the sake of examples I will # # show them all within one large file # # # # Whenever you see a commented "source" # # line, it was from a config file I split # # off, and have re-added to one big file # # for the purposes of example # # # ############################################ # Various client settings set query_command="lbdbq %s" set copy set beep_new set ascii_chars=yes set reverse_name set move=no unset mark_old set forward_quote set include set fast_reply="yes" set indent_str="> " ignore * # this means "ignore all headers by default" # I do want to see these fields, though~ unignore date from subject to cc # Color settings #source ~/.mutt/muttrc.colors ################################################## #here is the contents of my ~/.mutt/muttrc.colors file # #color settings color normal white default color attachment brightyellow default color hdrdefault cyan default color indicator brightwhite default color markers brightred default color quoted green default color signature cyan default color tilde blue default color tree red default color quoted1 green default color index brightyellow default ~N # New color index yellow default ~O # Old #example of colorizing based on FROM: #color index magenta default '~f foo@example.com' # End of muttrc.colors file ################################################## ########################### # Personal Settings # ########################### # with local settings outside of my ~/.mutt folder, # and the rest inside, I can rsync my entire ~/.mutt # folder with all my machines and keep all the settings # consistent, and keep all my per-machine configs in one # file # # local settings #source ~/.muttrc.local # Here are some settings specific to my local machine that I keep in ~/.muttrc.local ################################################## # # local mbox settings set mbox_type=Maildir set folder=~/mail set spoolfile=+INBOX set record=+sent-mail save-hook . "+saved-messages-`date +%Y`" mailboxes "=INBOX" # #End local settings ################################################## set alias_file=~/.mutt/mutt.aliases source ~/.mutt/mutt.aliases #source ~/.mutt/muttrc.mailboxes # here are my mailbox settings from ~/.mutt/muttrc.mailboxes #Mutt will check all mailboxes specified this way for new mail ################################################## # mailboxes "=consulting" mailboxes "=nblug" mailboxes "=saved-messages-2003" mailboxes "=saved-messages-2002" mailboxes "=sent-mail" # #end mailbox settings ################################################## set alternates=((foo|bar)@example.org) # All the emails mutt should consider as being from me, in this example, foo@example.org and bar@example.org are set. # sig settings #source ~/.mutt/muttrc.sigs #Here are some examples of sig settings I have in my ~/.mutt/muttrc.sigs file ################################################## # #sig settings send-hook '~t @nblug\.org$' 'set signature="~/.mutt/.sig.nblug"; my_hdr From: My Name ' send-hook '~t client@example\.com$' 'set signature="~/.mutt/.sig.consulting"; my_hdr From: My Name ' #both of these settings will pick a different signature file to use depending on whether I'm sending email to nblug.org (one of my mailing lists) or one of my consulting clients # # end sig settings ################################################## #mailing lists subscribe debian-news@lists.debian.org subscribe debian-security-announce@lists.debian.org subscribe talk@nblug.org subscribe announce@nblug.org # PGP/GPG settings #source ~/.mutt/muttrc.pgp #below are the settings from my ~/.mutt/muttrc.pgp file ################################################## # # PGP/GPG settings set pgp_replyencrypt # encrypt any replies to encrypted messages set pgp_replysignencrypted # automatically sign any messages I encrypt set pgp_show_unusable=no # don't offer revoked keys in the PGP key selection menu # # end pgp settings ################################################## ################################### # Random and Weird Settings # ################################### # Editor Settings set editor='vim "+set tw=75"' # use vim with a tab width set to 75 chars set pager_index_lines=7 # show 7 lines of other email from a mailbox when reading a specific email. Makes it easier to see where you are in your mailbox when reading a message # Keyboard Macros macro index h "c?\t" # show the "folder view" when I hit 'h' #folder hooks # default hook is 'set index_format="%4C %Z %{%b %d} %-15.15L (%4l) %s"' folder-hook nblug 'set index_format="%4C %Z %{%b %d} %-15.15F (%4l) %s"' folder-hook . 'set sort=date' folder-hook nblug 'set sort=threads' #default folder_format="%2C %t %N %F %sl %-8.8u %-8.8g %8s %d %f" set folder_format="%2C %t %N %8s bytes - %d %f" # extra weird settings # this setting will highlight links and follow them using w3m when I hit ctrl b macro pager \cb \ 'set pipe_decode'\ 'w3m'\ 'unset pipe_decode' \ 'Follow links in w3m' auto_view text/html application/msword #printer settings set print_command="a2ps -g -Email -d -1 -M letter -R" # abook settings # abook is a cool command-line address book program that works with mutt set query_command="abook --mutt-query '%s'" macro index \ca !abook\n macro pager A |'abook --add-email'\n