## ========================================================================
## File:        $HOME/.muttrc.color.index
## Purpose:     Setup file for the Mail program "Mutt"
## Last update: mer oct  3 00:29:03 UTC 2001
## ========================================================================
## Author:      Badoual Loïc loic {at} badoual.org
## Availability: This file is available as
##       <URL:http://www.customlinux.org/configurations/mutt/>
## ========================================================================

## ==================================================
## COLOR for both the Folder INDEX *and* the PAGER
## ==================================================

#        error messages
   color error        red    black

#  "message" - informational messages
#  such as the incremental count at startup.
#  It is nice to see on startup that
#  color actually works.  :-)
   color message      white  blue

## ==================================================
## Special COLORs for the Folder INDEX
## ==================================================

#  The  "indicator" for the "current message" -
#  whether it is an arrow or an "inverse line":
   color indicator    white  red

#        "status" lines in the folder index.
#        used for the mini-help line.
   color status       white  blue

#  The  "tree" display of threads within the folder index.
   color tree         red    black

## ==================================================
## COLOR for some special messages.
## ==================================================

#  000828
#  Deleted Mails - use dark color
#  as these are already "dealt with".
   color index blue black "~D"

#  000823
#  Mails with no obvious addresses
#  (empty To: and Cc: lines)
   color index blue black "! ~C ."

#  Flagged Messages are important!
   color index brightred   black "~F"
#  I use the flag to indicate that
#  I should reply to these soon.

#  mail from myself *and* to myself (TODO items):
   color index black  brightyellow       '~f guckes ~p'
#  the pattern "~p" means "from myself" - but alas
#  there is no pattern for "*from* myself"  :-(

#  mail to myself (personal mail):
#  color index brightgreen        black  '~p'
#  Commented out as most mail is for me - except SPAM.

#  mail NOT to myself (unpersonal mail):
#  color index green        black  '! ~p'

#  "DONE mails" ie those I have already replied to.
   color index blue         black  '~Q'

#  MailList - these messages have been sent to
#  a known mailing list.  What do these do in my mailbox??
#   color index white        blue   '~l'

## ==================================================
## Mails FROM special addresses
## ==================================================
#  mail from important people (like myself ;-):
#   color index cyan         black  '~f guckes'
#   color index white        red    '~f (ute.*fuchs)@'
#   color index white        red    '~f (fuchs.*ute)'
#
#  The author of Vim - Bram Moolenaar:
#  color index brightred    black   "~f bram"

## ==================================================
## Mails TO   special addresses
## ==================================================

#  Public Announcements on local domain
#  "To: studi-replies" etc
#   color index magenta      black  '~C -replies@math.fu-berlin.de'

#  CCs from posts on Usenet:
#   color index brightred    black  '~C guckes-usenet-cc'

#  SLRN Maintenance
#  color index brightblue  white    '~C guckes@slrn.org'
#  color index white  brightblue    '~C guckes@slrn.org'

#  VIM  Maintenance
#  color index brightgreen white    '~C guckes@vim.org'
#   color index green       black    '~C guckes@vim.org'

#  local mail aliases:
#  color index yellow       black  '~t ^(all\|hackers\|key\|studi)'

   color index brightred black '~C linuxbe'
   color index red black ~N
## ==================================================
## SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
## ==================================================

#  Addresses lines (To:, Cc:, Bcc:, Delivered-To:)
#
#  Definite SPAM:
#  I *never* use my "inf" address.
#   color index white       magenta  '~C guckes@inf.fu-berlin.de'
#   color index white       magenta  '~h "Delivered-To: .*guckes@inf.fu-berlin.de"'
#
#  I have not posted to Usenet with a hostname in my address for years.
#  so an address like "guckes@host.math.fu-berlin.de" is *invalid*!
#   color index white       magenta  '~C guckes@[a-z]+.math.fu-berlin.de'
#  color index white       magenta  '~h "Delivered-To: .*guckes@[a-z]+.math.fu-berlin.de"'
#
#  Possible SPAM:
#  Mails which were not sent to a known mailing list
#  (tell mutt about them with the "lists" command)
#  and which have not been "Copied to" 'guckes'
#  and yet have been "Delivered-To:" 'guckes'.
#  [ Too bad you cannot use "~p" here. :-( ]
#  color index white magenta  "! ~l ! ~C guckes ~h 'Delivered-To: .*guckes-'"
#
#  SPAM indicators in To: or Cc: line ("~C"):
#
#  Sent to "Undisclosed Recipients":
#   color index white      magenta  '~C Undisclosed.*Recipients'
#
#  Mails sent from ("~f") free mail services:
#  [All commented as I get mails from sensible people, too.]
#  color index magenta      black  '! ~p ~f @(aol\|hotmail\|msn\|prodigy\|yahoo)\.(com'
#  color index magenta      black '~f @(aol\|hotmail\|msn\|prodigy\|yahoo)\.(com\|net)'
#  color index magenta      black  '! ~p ~f @compulink.nlrs.com'
#  color index magenta      black  '! ~p ~f free'
#  color index magenta      black  '! ~p ~f funtime'
#  color index magenta      black  '! ~p ~f gmx'
#  color index magenta      black  '! ~p ~f worldnet.att.net'

#  SPAM indicators within the Message-ID: line ("~i"):
#    Usual characters in MID:  [-0-9a-zA-Z<>$@._+%]
#  Unusual characters in MID:  [:%#|/]
#  Message-ID values should not contain these characters:
#  color index magenta black "~i [{:%#|/]"
#  Are any of the "unusual characters" forbidden by the RFC?
#  (Gotta check that..)
#
#  Message-IDs contains at least one '@' character,
#  so it should not be missing:
#   color index white magenta "! ~i @"
#
#  Message-IDs are enclosed in angle brackets,
#  so an '<' should not be missing:
#   color index white magenta "! ~i <"
#
#  Message-IDs are not empty:
#   color index white magenta "~i <>"
#
#  Message-IDs' FQDN must not be empty:
#   color index white magenta "~i @>"
#
#  Message-IDs' FQDN contain at least one dot:
#  color index white magenta "! ~i @.*[.]"
#
#  Message-IDs FQDN does not end with a dot,
#  ie there must be at least a top level domain:
#   color index white magenta "~i [.]>"
#
#  Message-IDs do not contain spaces.
#   color index white magenta "~i '<.* .*>'"
#
#  Message-IDs should not contain "localhost".
#  color index white magenta "~i localhost"
#  commented because a LOT of people cannot
#  change this because of their crappy mail system.  *sigh*
#
#  Message-IDs should not contain "localdomain".
#   color index white magenta "~i localdomain"
#
#  Message-IDs with more than one angel bracket:
#   color index white magenta "~i <.*<"
#
#  Message-IDs with a strange domain name,
#  ie either one letter - or four and more:
#   color index white magenta "~i [.][a-z]>"
#   color index white magenta "~i [.][a-z]{4,}>"
#
#  Message-IDs added by mail relays:
#   color index white magenta "~i @mail.chemie.fu-berlin.de>"
#  color index white magenta "~i @zedat.fu-berlin.de>"
#   color index white magenta "~i Mail.ZEDAT.FU-Berlin.DE>"
#   color index white magenta "~i @arbi.informatik.uni-oldenburg.de>"
#   color index white magenta "~i @arbi.informatik.uni-oldenburg.de>"
#

# 001230
#  When the Subject indicates a reply (with ":re")
#  then there *must* be a reference to the previous message!
#  So if there is no In-Reply-To or References line -
#  then it must be a crappy mailer.
#   color index yellow magenta "~s re: ! ~x . ! ~h 'in-reply-to: '"
#  Guilty Mailers:
#  X-Mailer: Internet Mail Service (5.5.2650.21)
#  X-Mailer: MIME-tools 4.104 (Entity 4.116)
#  X-Mailer: USANET web-mailer (34WB1.4A.01)

#  SPAM SPAM SPAM
#  Address lines contain only local addresses
#  ie without an '@' character.
#   color index white magenta "! ~C @"

#  SPAM indicators in mail body ("~b")
#
#  "Dollars and Percentages"
#  Example:  "95% of Internet traffic ..."
#        and "Normally, we charge $500 per keyword"
#   color index white magenta "~b [1-9][0-9]% ~b [0-9]{3,}\$"
#
#  Silly stuff:
#   color index white magenta "~b 'This is not a Spam!'"
#  Yeah, right.  ;-)


#  SPAM indicators within the Subject: line ("~s"):
#
#  Empty Subject line - "not a single character"!
#   color index white magenta "! ~s ."
#
#  Subject line contains figures in dollar:
# "Subject: Make $50,000 in 90 Days"
#   color index white magenta "~s '\\$[0-9]+[0-9]+'"


#  SPAM indicators - special header lines.
#
#  HTML attachments
   color index white magenta "~h 'Content-Type: text/html'"

## ==================================================
## "Coloring by Reference"
## ==================================================

# status:  experimental

#  Show mails with "References" lines in the header.
#  This uses a rainbow scheme - the darker the color,
#  the more entries in the References line.
#
#  color index brightyellow black  "~h 'References: +<.+>'"
#  color index yellow       black  "~h 'References: +<.+> +<.+>'"
#  color index brightred    black  "~h 'References: +<.+> +<.+> +<.+>'"
#  color index red          black  "~h 'References: +<.+> +<.+> +<.+> +<.+>'"
#  color index blue         black  "~h 'References: +<.+> +<.+> +<.+> +<.+> +<.+>'"
#  color index green        black  "~h 'References: +<.+> +<.+> +<.+> +<.+> +<.+> +<.+>'"

# Replies to my mails - indicated by an "in-reply-to" line
# including my local domain.
# color index brightyellow black   "~h 'in-reply-to: .*math.fu-berlin.de'"
# color index brightyellow black   "~h 'references: .*math.fu-berlin.de'"

# ======================
# PAGER stuff
# ======================
#       "search" - matches found with search
#        within the internal pager.
   color search       white  blue

#  The  "markers" indicate a wrapped line
#  when showing messages with looong lines.
   color markers      red    black

######################## end of file ######################################