From 501784f695648ff7d1ea6cc73664129b1017884a Mon Sep 17 00:00:00 2001
From: Yigit Sever
Date: Sun, 4 Apr 2021 22:27:59 +0300
Subject: mutt: clever colouring rules

---
 .config/mutt/muttrc | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
index 5d71def..bd8c656 100644
--- a/.config/mutt/muttrc
+++ b/.config/mutt/muttrc
@@ -9,7 +9,10 @@ macro index,pager i5 '<sync-mailbox><enter-command>source /home/yigit/.config/mu
 
 bind generic z noop
 bind generic Z noop
+
+# character set for outgoing messages
 set send_charset="utf-8"
+# if the incoming mail haven't set anything it's probably something dumb.
 set assumed_charset="cp1252"
 
 set sort=threads
@@ -115,7 +118,28 @@ set signature = "echo '~yigit\n'|"
 # https://lwn.net/SubscriberLink/837960/f3bcafeaed37425d/
 # score '~f pangin' +10
 # score '~s ceng351' +20
+# score "~s EDAS" 20
 # color index color208 color234 "~n 10"
 # color index black red  "~n 20"
 
+############################
+#  custom body highlights  #
+############################
+# highlight my name and other personally relevant strings
+color body color172 default "((Y|y)igit)? (Sever)?"
+
+############################
+#  cusom index highlights  #
+############################
+# messages which mention my name in the body
+color index_flags color172 color128 "~b \"(Y|y)igit\"
+
+#############################################
+#  deep learning-based junk mail detection  #
+#############################################
+color index_subject color239 default "EDAS"
+color index_author color239 default "EDAS"
+color index_subject color239 default "~f @igi-global.com"
+color index_author color239 default "~f @igi-global.com"
+
 set sidebar_format = "%D%?F? [%F]?%* %?N?%N/? %?S?%S?"
-- 
cgit v1.2.3-70-g09d2