1# vim: filetype=muttrc
2
3#
4#
5# make sure that you are using mutt linked against slang, not ncurses, or
6# suffer the consequences of weird color issues. use "mutt -v" to check this.
7
8# custom body highlights -----------------------------------------------
9# highlight my name and other personally relevant strings
10#color body          yellow          default         "(ethan|schoonover)"
11# custom index highlights ----------------------------------------------
12# messages which mention my name in the body
13#color index         yellow          default         "~b \"phil(_g|\!| gregory| gold)|pgregory\" !~N !~T !~F !~p !~P"
14#color index         J_cream         brightwhite     "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~N !~T !~F !~p !~P"
15#color index         yellow          cyan            "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~T !~F !~p !~P"
16#color index         yellow          J_magent        "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~F !~p !~P"
17## messages which are in reference to my mails
18#color index         J_magent        default         "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" !~N !~T !~F !~p !~P"
19#color index         J_magent        brightwhite     "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~N !~T !~F !~p !~P"
20#color index         J_magent        cyan            "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~T !~F !~p !~P"
21#color index         J_magent        red             "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~F !~p !~P"
22
23# for background in 16 color terminal, valid background colors include:
24# base03, bg, black, any of the non brights
25
26# basic colors ---------------------------------------------------------
27color normal        brightyellow    default
28color error         red             default
29color tilde         black           default
30color message       cyan            default
31color markers       red             white
32color attachment    white           default
33color search        brightmagenta   default
34#color status        J_black         J_status
35color status        brightyellow    black
36color indicator     brightblack     yellow
37color tree          yellow          default                                     # arrow in threads
38
39# basic monocolor screen
40mono  bold          bold
41mono  underline     underline
42mono  indicator     reverse
43mono  error         bold
44
45# index ----------------------------------------------------------------
46
47#color index         red             default         "~D(!~p|~p)"               # deleted
48#color index         black           default         ~F                         # flagged
49#color index         brightred       default         ~=                         # duplicate messages
50#color index         brightgreen     default         "~A!~N!~T!~p!~Q!~F!~D!~P"  # the rest
51#color index         J_base          default         "~A~N!~T!~p!~Q!~F!~D"      # the rest, new
52color index         red             default         "~A"                        # all messages
53color index         brightred       default         "~E"                        # expired messages
54color index         blue            default         "~N"                        # new messages
55color index         blue            default         "~O"                        # old messages
56color index         brightmagenta   default         "~Q"                        # messages that have been replied to
57color index         brightgreen     default         "~R"                        # read messages
58color index         blue            default         "~U"                        # unread messages
59color index         blue            default         "~U~$"                      # unread, unreferenced messages
60color index         brightyellow    default         "~v"                        # messages part of a collapsed thread
61color index         brightyellow    default         "~P"                        # messages from me
62color index         cyan            default         "~p!~F"                     # messages to me
63color index         cyan            default         "~N~p!~F"                   # new messages to me
64color index         cyan            default         "~U~p!~F"                   # unread messages to me
65color index         brightgreen     default         "~R~p!~F"                   # messages to me
66color index         red             default         "~F"                        # flagged messages
67color index         red             default         "~F~p"                      # flagged messages to me
68color index         red             default         "~N~F"                      # new flagged messages
69color index         red             default         "~N~F~p"                    # new flagged messages to me
70color index         red             default         "~U~F~p"                    # new flagged messages to me
71color index         black           red             "~D"                        # deleted messages
72color index         brightcyan      default         "~v~(!~N)"                  # collapsed thread with no unread
73color index         yellow          default         "~v~(~N)"                   # collapsed thread with some unread
74color index         green           default         "~N~v~(~N)"                 # collapsed thread with unread parent
75# statusbg used to indicated flagged when foreground color shows other status
76# for collapsed thread
77color index         red             black           "~v~(~F)!~N"                # collapsed thread with flagged, no unread
78color index         yellow          black           "~v~(~F~N)"                 # collapsed thread with some unread & flagged
79color index         green           black           "~N~v~(~F~N)"               # collapsed thread with unread parent & flagged
80color index         green           black           "~N~v~(~F)"                 # collapsed thread with unread parent, no unread inside, but some flagged
81color index         cyan            black           "~v~(~p)"                   # collapsed thread with unread parent, no unread inside, some to me directly
82color index         yellow          red             "~v~(~D)"                   # thread with deleted (doesn't differentiate between all or partial)
83#color index         yellow          default         "~(~N)"                    # messages in threads with some unread
84#color index         green           default         "~S"                       # superseded messages
85#color index         red             default         "~T"                       # tagged messages
86#color index         brightred       red             "~="                       # duplicated messages
87
88# message headers ------------------------------------------------------
89
90#color header        brightgreen     default         "^"
91color hdrdefault    brightgreen     default
92color header        brightyellow    default         "^(From)"
93color header        blue            default         "^(Subject)"
94
95# body -----------------------------------------------------------------
96
97color quoted        blue            default
98color quoted1       cyan            default
99color quoted2       yellow          default
100color quoted3       red             default
101color quoted4       brightred       default
102
103color signature     brightgreen     default
104color bold          black           default
105color underline     black           default
106color normal        default         default
107#
108color body          brightcyan      default         "[;:][-o][)/(|]"    # emoticons
109color body          brightcyan      default         "[;:][)(|]"         # emoticons
110color body          brightcyan      default         "[*]?((N)?ACK|CU|LOL|SCNR|BRB|BTW|CWYL|\
111                                                     |FWIW|vbg|GD&R|HTH|HTHBE|IMHO|IMNSHO|\
112                                                     |IRL|RTFM|ROTFL|ROFL|YMMV)[*]?"
113color body          brightcyan      default         "[ ][*][^*]*[*][ ]?" # more emoticon?
114color body          brightcyan      default         "[ ]?[*][^*]*[*][ ]" # more emoticon?
115
116## pgp
117
118color body          red             default         "(BAD signature)"
119color body          cyan            default         "(Good signature)"
120color body          brightblack     default         "^gpg: Good signature .*"
121color body          brightyellow    default         "^gpg: "
122color body          brightyellow    red             "^gpg: BAD signature from.*"
123mono  body          bold                            "^gpg: Good signature"
124mono  body          bold                            "^gpg: BAD signature from.*"
125
126# yes, an insance URL regex
127color body          red             default         "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"
128# and a heavy handed email regex
129#color body          J_magent        default         "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])"
130
131# Various smilies and the like
132#color body          brightwhite     default         "<[Gg]>"                            # <g>
133#color body          brightwhite     default         "<[Bb][Gg]>"                        # <bg>
134#color body          yellow          default         " [;:]-*[})>{(<|]"                  # :-) etc...
135# *bold*
136#color body          blue            default         "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
137#mono  body          bold                            "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
138# _underline_
139#color body          blue            default         "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
140#mono  body          underline                       "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
141# /italic/  (Sometimes gets directory names)
142#color body         blue            default         "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
143#mono body          underline                       "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
144
145# Border lines.
146#color body          blue            default         "( *[-+=#*~_]){6,}"
147
148#folder-hook .                  "color status        J_black         J_status        "
149#folder-hook gmail/inbox        "color status        J_black         yellow          "
150#folder-hook gmail/important    "color status        J_black         yellow          "
151
152