## ================================================================= ## File: $HOME/.mutt.color.body ## Purpose: Setup file for the Mail program "Mutt" ## Colorize text within messages headers ## Author: Sven Guckes setup-mutt.color.header(at)guckes.net ## Latest change: Thu Jun 29 15:42:23 CEST 2017 ## Size: ca 11KB ## Availability: http://www.guckes.net/setup/mutt.color.header ## Comments via email are very very welcome! :-) ## ================================================================= ## ============================================================= ## SEE ALSO: ## Mutt Manual, Section "Using color and mono video attributes": ## http://www.guckes.net/mutt/doc/manual-3.html#color ## ============================================================= ## ============================================================= ## COLOR for Valid Mails ## ============================================================= ## ========== COLOR for data about the *sender* # Sender. # Info relating to the sender: color header white red "date: " color header white red "from: " # color header green black "from " color header green black "sender: " # # "Organisation:" and "Organization:": color header red black "organi[sz]ation: " # # Programs involved with creation and sending: color header magenta black "user-agent: " color header red black "x-editor: " color header red black "x-mailer: " color header magenta black "x-posting-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: " # Redirection of answers (ie followups and replies): # (using the 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: " # Signals of Importance, Precedence and 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 in the folder index! # so please make good use of it! # use names and important words from your message! # avoid trivial names like the name of the # program on the programs' mailing list - # include the version number instead! color header white blue "subject: " ## ========== COLOR for data about the *recipients* (TO/CC) # 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 black green "^bcc: [^ ]" color header black green "^cc: [^ ]" color header black green "^to: [^ ]" # Public Messages (related to MailLists or News/Usenet): color header black green "newsgroups: " # CCs from gnus color header black green "posted-and-mailed:" # CCs from dialog color header black green "^posted-to: " # CCs from gnus color header black green "^x-newsgroups: " # CCs from tin color header black green "^x-posted-to: " # CCs from slrn # this was "white on green" to keep it in line with "white on # something" for the header - but this combination is not good. # # Note: Some mailers add empty Bcc: lines. # No, I don't know why they do this. ;-) # "Delivered-To:" header - only available with MDAs that add it. color header yellow black "Delivered-To: " # The following are personal settings - # so please adjust for yourself! # # "Delivered-To:" header showing that the message was # delivered to "guckes-word@math.fu-berlin.de": color header brightyellow black "delivered-to: guckes-[-a-z]+@math.fu-berlin.de" # # special color for replies to posts on Usenet: color header red white "to: guckes-usenet" # Lines that get added by the MDA (and when mutt # writes changes back to folder on "sync-mailbox"): color header blue black "Content-Length: " color header blue black "Lines: " # Standard Headers that are usually hidden: color header white black "Received: " color header white black "Return-Path: " ## ========== COLOR for special header lines # Other additional headers: # Netscape Mozilla adds this: "X-Accept-Language: en" color header green black "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 white cyan "X-Operating-System: " # The "Status" as added by elm, mutt, and pine: color header brightblue black "Status: " color header brightblue black "X-Status: " # MIME headers: color header yellow black "MIME-Version: " color header yellow black "Content-Type: " color header yellow black "Content-Transfer-Encoding: " color header yellow black "Content-Disposition: " color header yellow black "Content-Encoding: " color header yellow black "Content-Language: " # # 2005-03-10: special color for f=f mails! color header black yellow "Content-Type:.*format=flowed" # Deflected ("Resent") Mails (added by mutt # when using the "bounce" command): # color header yellow black "X-Resent-By: " # color header yellow black "X-Resent-For: " # color header yellow black "X-Resent-To: " # # 2006-11-05: color header brightyellow blue "resent-date: " color header brightyellow blue "resent-from: " color header brightyellow blue "resent-to: " color header brightyellow blue "resent-message-id: " # List- headers by mailman: [2003-03-22] color header white blue "list-[a-z]+: " color header white blue "x-mailman-version: " # Example: this is the kind of info that Mailman sends with *every* mail! # # X-Mailman-Version: 2.0.13 # X-BeenThere: LISTNAME@DOMAIN # Errors-To: LISTNAME-admin@DOMAIN # List-Help: # List-Post: # List-Subscribe: , # # List-Id: INFORMATION ABOUT THE LIST # List-Unsubscribe: , # # List-Archive: # # as you can see, there is info anout subscription and unsubscription, # the contact address of the list maintainer and the address of the # maillist archive. so there really is not much of an excuse for # subscribers for sending unsubscription messages to the list (hrmpf). # now, there are mailers which do not show all headers (that's ok) # and mailers which do not allow the ueser to see all headers - # and that's NOT ok. do not use such mailers and do not give # those to other people, either. please let these programs DIE! # Anti-Spam stuff - amavis, spamassassin, etc # # X-Spam-Status: No, hits=-2.0 required=5.0 tests=LIST version=2.44 # X-Spam-Level: # X-Virus-Scanned: by AMaViS 0.3.12pre7-U14 [13911] # (NAI-uvscan@math.fu-berlin.de) # X-Remote-IP: 213.198.65.81 color header magenta black "X-Spam-Status: " color header magenta black "X-Spam-Level: " color header magenta black "X-Virus-Scanned: " color header magenta black "X-Remote-IP: " # Errors-To: color header red black "errors-to: " # TODO (on some rainy day.. ;-) # Content-MD5: # 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:
" - quite probably SPAM! # color header white magenta "To: <[^ ]+>" # color header white magenta "~C ^<[^ ]+>$" # # "To: " - SPAM or proper MailList? color header white magenta "To: " # # Mails delivered to guckes@host.math.fu-berlin.de # are almost always spam: color header white magenta "To: .*guckes@[a-z]+.math.fu-berlin.de" # # Mails delivered to guckes@inf.fu-berlin.de are almost always spam, # because I have not used this address for years: color header white magenta "To: .*guckes@inf.fu-berlin.de" # # Mails to an ever older address which has died long ago: color header white magenta "To: .*@fub46.zedat.fu-berlin.de" # # Bad To and Reply-To lines (without '@' sign): # color header white magenta "To: [^@]+" color header white magenta "! ~C @" # color header white magenta "Reply-To: [^@]+" ### END SPAM # blinking header line when the charset ist "unknown": color header brightmagenta brightred 'content-type:.*charset=x-unknown' # "User-Agent: K-9 Mail for Android" # "X-Mailer: iPhone Mail (13C75)" # 2016-12-31 # S/MIME signatures # Content-Type: multipart/signed; protocol="application/pkcs7-signature";... color header brightmagenta black 'pkcs7-signature' # 2017-06-29 color header brightyellow default '^x-pgp' # vim: set fenc=utf-8 ft=muttrc tw=140: THPXRF EOF