## =============================================================
## Availability: This file is available as
## <URL:http://www.math.fu-berlin.de/~guckes/mutt/mutt.color.header>
## http://www.math.fu-berlin.de/~guckes/mutt/doc/manual-3.html#color
## =============================================================
## COLOR for Valid Mails
## =============================================================

#  "Delivered-To:" header
   color header   yellow black     "Delivered-To: "
#
#  Sender.
#  Info relating to the sender:
   color header       red      black    "date: "
   color header       green    black    "from "
   color header       white    red      "from: "
   color header       green    black    "sender: "
#  "Organisation:" and "Organization:":
   color header       red      black    "organi[sz]ation: "
   color header       red      black    "x-editor: "
   color header       red      black    "x-mailer: "
   color header       red      black    "user-agent: "
#  Message Identification.
#  Message-ID, In-Reply-To, and References:
   color header       red      black    "message-id:"
   color header       red      black     "in-reply-to: "
   color header       red      black     "references: "

#  Public Messages (related to MailLists or News/Usenet):
   color header       white    red      "newsgroups: "
#  "tin" adds "X-Newsgroups:" on CCs:
   color header       white    red      "x-newsgroups: "

#  Redirection.
#  Same color for Reply-To as for From: -
#  unfortunately you cannot "link" color groups.
   color header brightgreen    black    "followup-to: "
   color header brightgreen    black    "mail-followup-to: "
   color header       white    red      "reply-to: "

#  Importance:, Precedence: Priority:
#  Color depends on the value:
   color header       yellow   black    "importance: "
   color header       blue     black    "importance: normal"
   color header       yellow   black    "precedence: "
   color header       yellow   black    "priority: "
   color header       red      white    "priority: high"
   color header       red      white    "priority: urgent"
   color header       blue     black    "priority: normal"
   color header       yellow   black    "x-priority: "
   color header       yellow   black    "X-MSMail-Priority: "

#  Subject:
#  The most important line.  Make good use of it!
   color header       white    blue     "subject: "

#  Address lines (To:, Cc:, Reply-To; Bcc:):
#  Empty address lines get special color:
#  BUG:  Anchoring at the end-of-line with '$' does not work!  :-(
#  color header white          magenta  "bcc: $"
#  color header white          magenta  "to: ?"
#
#  Require at least one non-space character
#  to differentiate from following rules.
   color header green          black    "^bcc: [^ ]"
   color header green          black    "^cc: [^ ]"
   color header green          black    "^to: [^ ]"
#
#  Note:  Some mailers add empty Bcc: lines.
#  No, I don't know why they do this.  ;-)

#  Lines that get added by the MDA:
   color header   blue  white      "Content-Length: "
   color header   blue  white      "Lines: "

#  Standard Headers that are usually hidden:
   color header   white black      "Received: "
   color header   white black      "Return-Path: "

#  Other additional headers:
#  Netscape Mozilla adds this:      "X-Accept-Language: en"
   color header   white green       "X-Accept-Language: "
#
#  Some people add info on their OS
#  so they won't have to mention it every time in the body.
   color header   cyan  white      "X-Operating-System: "

#  The "Status" as added by elm, mutt, and pine:
   color header   blue  white      "Status: "
   color header   blue  white      "X-Status: "

#  MIME headers:
   color header   red   yellow     "MIME-Version: "
   color header   red   yellow     "Content-Type: "
   color header   red   yellow     "Content-Transfer-Encoding: "
   color header   red   yellow     "Content-Disposition: "
   color header   red   yellow     "Content-Encoding: "
   color header   red   yellow     "Content-Language: "

#  Deflected ("Resent") Mails:
   color header   yellow black     "X-Resent-By: "
   color header   yellow black     "X-Resent-For: "
   color header   yellow black     "X-Resent-To: "

# TODO:
# Content-MD5:
# Errors-To:
# Status: RO
# X-Originating-IP: 
# X-Pgp-Fingerprint:
# X-Sun-Charset: US-ASCII
# X-Keywords:
# X-UID: 17
# X-Status: F

## =============================================================
## COLOR for SPAM - white on magenta
## =============================================================

#  "To: <address>" - quite probably SPAM!
#  color header   white  magenta   "To: <[^ ]+>"
#  color header   white  magenta   "~C ^<[^ ]+>$"
#
#  "To: <Undisclosed Recipients>" - SPAM or proper MailList?
   color header   white  magenta   "To: <Undisclosed Recipients>"
#
#  Bad To and Reply-To lines (without '@' sign):
#  color header white  magenta       "To: [^@]+"
   color header white  magenta        "! ~C @"
#  color header white  magenta "Reply-To: [^@]+"

#EOF vim: ft=muttrc
