#MAILBOXES, MY NAME, FOLDERS
set realname="tchow"
set folder="~/muttmail"               # where my mailboxes are
set postponed="~/muttmail/postponed # where postponed stuff goes
set mbox=+mbox                        # mail from spool gets copied in here
mailboxes /var/spool/mail/kodiak      # my mailboxes filtered by procmail
mailboxes /home/kodiak/muttmail/lug
mailboxes /home/kodiak/muttmail/admin-lug
mailboxes /home/kodiak/muttmail/bruinlinux
mailboxes /home/kodiak/muttmail/bugtraq
#sent mail should not be defined as a mailbox
#mailboxes /home/kodiak/muttmail/sent
set editor=jmacs                      # yay! emacs key bindings

#some mailing lists
lists linux@linux.ucla.edu admin@linux.ucla.edu bruinlinux@linux.ucla.edu
#copies my sent mail to mailbox sent_mail
set copy=yes                          # + is a mailbox shortcut.
set record=+sent                      # it expands to whatever you set in folder

#HOW STUFF LOOKS

#order of headers when i read mail
hdr_order Date: From: Organization: User-Agent: X-Mailer To: Cc: Reply-To: Subject:

ignore *
unignore Date: From: Organization: User-Agent: X-Mailer To: Cc: Reply-To: Subject:

set forward_format="Fwd: %s"          # forwarded mail say this

#what the date format looks like
set date_format="!%a, %b %d, %Y at %I:%M:%S%p %Z"

#what mailboxes/folders look like
set folder_format="%N %-8.8u %8s %d  %N %f"

set edit_headers                      # i like to see the headers when composing email
set pager_context=1                   # paging shows me one line leftover
set pager_stop                        # prevent pager from going to next message unlesss you say so
set nomarkers                         # no wrap around markers

#defaults for all folders are threaded w/ mini index of 11 lines "." means all mailboxes
folder-hook . set sort=threads
# i get to see the index and pager together when paging
folder-hook . set pager_index_lines=11

#these don't get sorted by threads
folder-hook /var/spool/mail/kodiak set sort=date-received
folder-hook +mbox set sort=date-received
folder-hook +sent set sort=date-sent

#sets what folders look like, which fields go where, in what order, etc...
folder-hook . 'set index_format="%4C %Z %{%b %d} %-15.15F (%4l) %s"'
folder-hook lug 'set index_format="%2C %Z %{%b %d} %-15.15F (%4l) %s"'
folder-hook admin-lug 'set index_format="%2C %Z %{%b %d} %-15.15F (%4l) %s"'
folder-hook bruinlinux 'set index_format="%2C %Z %{%b %d} %-15.15F (%4l) %s"'
folder-hook mbox 'set index_format="%2C %Z %{%b %d} %-15.15F (%4l) %s"'

#HOW MUTT BEHAVES
unset mark_old                        # unread old messages are still unread after quitting
set auto_tag                          # when tag articles, actions are default for all tagged messages
set quit=ask-no                       # ask me to quit. default no
unset confirmappend                   # don't ask me about appending messages to other boxes


#ALIASES
set alias_file="~/.alias_mutt"
source ~/.alias_mutt

#KEY BINDINGS
bind generic    "#"     tag-entry
bind generic    <left>  previous-entry
bind generic    <right> next-entry
bind index      "c"     copy-message
bind index   "\Cx\Cf" change-folder
bind pager      "c"     copy-message
bind pager      "#"     tag-message
bind pager      <up>     previous-line
bind pager      <down>   next-line
bind pager   "<"      top
bind pager   ">"      bottom
bind pager   <home>   top
bind pager   <end>    bottom
bind pager   "{"      previous-thread
bind pager   "}"      next-thread
bind pager   "\Cx\Cf"   change-folder
bind browser "e"        check-new

macro index "\Cx\Cb" "<change-folder>?"         # Folder list.
macro index "w" "<change-folder>?"              # Folder list. 'cuz "w" was the first key
                                                # i found unbound
macro index "\Cx\Cs" "|cat > ~/"                # Save message
macro pager "\Cx\Cb" "<change-folder>?"         # Folder list.
macro pager "w" "<change-folder>?"              # Folder list.
macro pager "\Cx\Cs" "|cat > ~/"                # Save message


#COLORS
color normal default default
color hdrdefault brightcyan default
color signature green default
color attachment brightyellow default
color indicator brightblack  brightcyan
color quoted    green   default
color quoted1   white   default
color tilde     blue    default
color tree      brightred default
#color quoted2  cyan    default
#color quoted3  white   default
#color quoted4  red     default
#color quoted5  green   default
#color quoted6  cyan    default
#color quoted7  white   default
#color quoted8  red     default
#color quoted9  green   default
color body brightcyan  default "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
color body brightwhite  default "(http|ftp|news|telnet|finger)://[^ \">\t\r\n]*"
color body brightwhite  default "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
color header brightmagenta default ^(Date):
color header brightyellow default ^Subject:
color body brightred default " [;:]-*[)>(<|]"   # :-) etc...