# -*- ~/.mutt/colours -*-
# Colour settings for mutt.
#
# Syntax:
# color object foreground background [ regexp ]
# color index foreground background pattern
#
# object can be one of:
# attachment, 
# body (match regexp in the body of messages),
# bold (hiliting bold patterns in the body of messages),
# error (error messages printed by Mutt),
# header (match regexp in the message header),
# hdrdefault (default color of the message header in the pager),
# index (match pattern in the message index),
# indicator (arrow or bar used to indicate the current item in a menu),
# markers (the ``+'' markers at the beginning of wrapped lines in the pager),
# message (informational messages),
# normal,
# quoted (text matching $quote_regexp in the body of a message),
# quoted1, quoted2, ..., quotedN (higher levels of quoting),
# search (hiliting of words in the pager),
# signature,
# status (mode lines used to display info about the mailbox or message),
# tilde (the ``~'' used to pad blank lines in the pager),
# tree (thread tree drawn in the message index and attachment menu),
# underline (hiliting underlined patterns in the body of messages)


# Colour definitions when on a mono screen
mono	bold		bold
mono	underline	underline
mono	indicator	reverse

color	quoted		yellow		default
color	quoted1		cyan		default
color	quoted2		green		default
color 	quoted3		brightyellow	default
color	signature	red		default
color	indicator	black		white
color	attachment	yellow		default
color	error		brightred	default
color	status		white		blue
color	tree		yellow		default
color	normal		white		default
color 	message		cyan		default
color 	search		white		default
color	tilde		blue		default
color	bold		brightyellow	default
color	markers		red		default

# ---------------------------------------------
# Colours for items in the index
# colouring is done mostly in folder-hooks...
mono  	index 	bold              		~U
mono  	index 	bold              		~F
mono  	index 	bold              		~T
mono  	index 	bold              		~D



# ----------------------------------------
# Colours for items in the header
color	hdrdefault	green		default
color	header		cyan		default		"^(Date|From|Subject):"
mono	header		bold            		"^(Date|From|Subject):"


color 	header 		red 		default 	"^X-Virus-Status:.YES"
color 	header 		red 		default 	"^X-Amavis-Alert:.INFECTED.*"

# spam diagnostics: alerts in red...
color	header		red		default		"^X-Spam.*"
color	header		red		default		"^X-SB.*"
color	header		red		default		"^X-Razor.*"
color	header		red		default		"^X-Pyzor.*"
color	header		red		default		"^X-DCC-.*:.*Fuz1=many Fuz2=many"
color 	header 		red 		default 	"^X-MailScanner-Spamcheck:.spam"
#color	header		black		red		"^'X-Spam-Flag: YES' ! '^X-Spam-Status: .*RAZOR2_CHECK'"
# ...harmless headers in normal green again
color	header		green		default		"^X-Spam-Status: No"
color	header		green		default		"^X-Spam-Checker-Version:"
color	header		green		default		"^X-Spam-Level: [^*]"
color	header		green		default		"^X-SpamBouncer:"
color	header		green		default		"^X-SBClass: OK"
color	header		green		default		"^X-SBPass:"
color	header		green		default		"^X-SBNote:"
color	header		green		default		"^X-Pyzor: Reported 0 times."


# ----------------------------------------
# Highlights inside the body of a message.

# URLs
color	body	cyan		default		(http|ftp)://[_a-zA-Z0-9\./~\-]+
color	body	cyan		default 		"(http|https|ftp|news|telnet|finger)://[^ \">\t\r\n]*"
color	body	cyan		default 		"mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
color	body	cyan		default 		"news:[^ \">\t\r\n]*"
mono	body 	bold				"(http|https|ftp|news|telnet|finger)://[^ \">\t\r\n]*"
mono	body 	bold				"mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono	body 	bold				"news:[^ \">\t\r\n]*"

# email addresses
# color	body	brightyellow	default		 [_a-z\.\$A-Z0-9-]+@[a-zA-Z0-9\./\-]+
color	body 	cyan		default		"[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
mono 	body	bold				"[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"

# TOFU protection
color 	body 	brightmagenta	default		"^\\[---\=[|].*"

# gnupg coloring (source: kris kennaway <kris@obsecurity.org>)
color	body	green		default		"^gpg: Korrekte Unterschrift"
color	body	brightred	default		"^gpg: Ungültige Unterschrift"
color	body	brightred	default		"^gpg: Falsche Unterschrift"
color	body	brightred	default		"^gpg: Entschlüsselung mit öffentlichem Schlüssel fehlgeschlagen:"
color	body	brightred	default		"^gpg: Enschlüsselung fehlgeschlagen:"
color	body	brightred	default		"^gpg: Note: This key has expired!"
color	body	brightyellow	default		"^gpg: WARNING: This key is not certified with a trusted signature!"
color	body	brightyellow	default		"^gpg:          There is no indication that the signature belongs to the owner."
color	body	brightyellow	default		"^gpg: can't handle these multiple signatures"
color	body	brightyellow	default		"^gpg: signature verification suppressed"
color	body	brightyellow	default		"^gpg: invalid node with packet of type"

# Various smilies and the like
color	body	brightyellow	default		"<[Gg]>"                # <g>
color	body	brightyellow	default		"<[Bb][Gg]>"            # <bg>
color	body	brightyellow	default		" [;:]-*[)<(>|]"        # :-) etc...
color	body	green		default		"(^|[^[:alnum:][:punct:]])\\*[[:alnum:][:punct:]]+\\*([^[:alnum:][:punct:]]|$)" # *Bold* text.
color	body	green		default		"(^|[^[:alnum:][:punct:]])_[[:alnum:][:punct:]]+_([^[:alnum:][:punct:]]|$)"     # _Underlined_ text.
color	body	green		default		"(^|[^[:alnum:][:punct:]])/[[:alnum:][:punct:]]+/([^[:alnum:][:punct:]]|$)"     # /Italic/ text.