NeoMutt  2025-09-05-29-ga12b18
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
regex.c File Reference

Regex Colour. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "index/lib.h"
#include "pattern/lib.h"
#include "attr.h"
#include "color.h"
#include "command2.h"
#include "debug.h"
#include "notify2.h"
#include "regex4.h"
+ Include dependency graph for regex.c:

Go to the source code of this file.

Functions

void regex_colors_init (void)
 Initialise the Regex colours.
 
void regex_colors_reset (void)
 Reset the Regex colours.
 
void regex_colors_cleanup (void)
 Cleanup the Regex colours.
 
void regex_color_clear (struct RegexColor *rcol)
 Free the contents of a Regex colour.
 
void regex_color_free (struct RegexColorList *list, struct RegexColor **ptr)
 Free a Regex colour.
 
struct RegexColorregex_color_new (void)
 Create a new RegexColor.
 
struct RegexColorList * regex_color_list_new (void)
 Create a new RegexColorList.
 
void regex_color_list_clear (struct RegexColorList *rcl)
 Free the contents of a RegexColorList.
 
struct RegexColorList * regex_colors_get_list (enum ColorId cid)
 Return the RegexColorList for a Colour ID.
 
static enum CommandResult add_pattern (struct RegexColorList *rcl, const char *s, struct AttrColor *ac_val, struct Buffer *err, bool is_index, int match)
 Associate a colour to a pattern.
 
bool regex_colors_parse_color_list (enum ColorId cid, const char *pat, struct AttrColor *ac, int *rc, struct Buffer *err)
 Parse a Regex 'color' command.
 
int regex_colors_parse_status_list (enum ColorId cid, const char *pat, struct AttrColor *ac, int match, struct Buffer *err)
 Parse a Regex 'color status' command.
 
bool regex_colors_parse_uncolor (enum ColorId cid, const char *pat)
 Parse a Regex 'uncolor' command.
 

Variables

struct RegexColorList AttachList
 List of colours applied to the attachment headers.
 
struct RegexColorList BodyList
 List of colours applied to the email body.
 
struct RegexColorList HeaderList
 List of colours applied to the email headers.
 
struct RegexColorList IndexAuthorList
 List of colours applied to the author in the index.
 
struct RegexColorList IndexCollapsedList
 List of colours applied to a collapsed thread in the index.
 
struct RegexColorList IndexDateList
 List of colours applied to the date in the index.
 
struct RegexColorList IndexFlagsList
 List of colours applied to the flags in the index.
 
struct RegexColorList IndexLabelList
 List of colours applied to the label in the index.
 
struct RegexColorList IndexList
 List of default colours applied to the index.
 
struct RegexColorList IndexNumberList
 List of colours applied to the message number in the index.
 
struct RegexColorList IndexSizeList
 List of colours applied to the size in the index.
 
struct RegexColorList IndexSubjectList
 List of colours applied to the subject in the index.
 
struct RegexColorList IndexTagList
 List of colours applied to tags in the index.
 
struct RegexColorList IndexTagsList
 List of colours applied to the tags in the index.
 
struct RegexColorList StatusList
 List of colours applied to the status bar.
 

Detailed Description

Regex Colour.

Authors
  • Richard Russon
  • Pietro Cerutti

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file regex.c.

Function Documentation

◆ regex_colors_init()

void regex_colors_init ( void  )

Initialise the Regex colours.

Definition at line 68 of file regex.c.

69{
70 color_debug(LL_DEBUG5, "init AttachList, BodyList, etc\n");
86}
struct RegexColorList IndexCollapsedList
List of colours applied to a collapsed thread in the index.
Definition: regex.c:52
struct RegexColorList IndexFlagsList
List of colours applied to the flags in the index.
Definition: regex.c:54
struct RegexColorList IndexAuthorList
List of colours applied to the author in the index.
Definition: regex.c:51
struct RegexColorList IndexSubjectList
List of colours applied to the subject in the index.
Definition: regex.c:59
struct RegexColorList IndexLabelList
List of colours applied to the label in the index.
Definition: regex.c:55
struct RegexColorList StatusList
List of colours applied to the status bar.
Definition: regex.c:62
struct RegexColorList IndexList
List of default colours applied to the index.
Definition: regex.c:56
struct RegexColorList IndexTagList
List of colours applied to tags in the index.
Definition: regex.c:60
struct RegexColorList BodyList
List of colours applied to the email body.
Definition: regex.c:49
struct RegexColorList IndexTagsList
List of colours applied to the tags in the index.
Definition: regex.c:61
struct RegexColorList HeaderList
List of colours applied to the email headers.
Definition: regex.c:50
struct RegexColorList AttachList
List of colours applied to the attachment headers.
Definition: regex.c:48
struct RegexColorList IndexDateList
List of colours applied to the date in the index.
Definition: regex.c:53
struct RegexColorList IndexNumberList
List of colours applied to the message number in the index.
Definition: regex.c:57
struct RegexColorList IndexSizeList
List of colours applied to the size in the index.
Definition: regex.c:58
static int color_debug(enum LogLevel level, const char *format,...)
Definition: debug.h:52
@ LL_DEBUG5
Log at debug level 5.
Definition: logging2.h:48
#define STAILQ_INIT(head)
Definition: queue.h:410
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regex_colors_reset()

void regex_colors_reset ( void  )

Reset the Regex colours.

Definition at line 91 of file regex.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regex_colors_cleanup()

void regex_colors_cleanup ( void  )

Cleanup the Regex colours.

Definition at line 114 of file regex.c.

115{
117}
void regex_colors_reset(void)
Reset the Regex colours.
Definition: regex.c:91
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regex_color_clear()

void regex_color_clear ( struct RegexColor rcol)

Free the contents of a Regex colour.

Parameters
rcolRegexColor to empty
Note
The RegexColor object isn't freed

Definition at line 125 of file regex.c.

126{
127 if (!rcol)
128 return;
129
130 rcol->match = 0;
131 rcol->stop_matching = false;
132
134 FREE(&rcol->pattern);
135 regfree(&rcol->regex);
137}
void attr_color_clear(struct AttrColor *ac)
Free the contents of an AttrColor.
Definition: attr.c:48
void mutt_pattern_free(struct PatternList **pat)
Free a Pattern.
Definition: compile.c:774
#define FREE(x)
Definition: memory.h:62
regex_t regex
Compiled regex.
Definition: regex4.h:39
struct PatternList * color_pattern
Compiled pattern to speed up index color calculation.
Definition: regex4.h:41
struct AttrColor attr_color
Colour and attributes to apply.
Definition: regex4.h:37
char * pattern
Pattern to match.
Definition: regex4.h:38
bool stop_matching
Used by the pager for body patterns, to prevent the color from being retried once it fails.
Definition: regex4.h:43
int match
Substring to match, 0 for old behaviour.
Definition: regex4.h:40
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regex_color_free()

void regex_color_free ( struct RegexColorList *  list,
struct RegexColor **  ptr 
)

Free a Regex colour.

Parameters
listRegexColorList holding the colour
ptrRegexColor to free

Definition at line 144 of file regex.c.

145{
146 if (!ptr || !*ptr)
147 return;
148
149 struct RegexColor *rcol = *ptr;
150 regex_color_clear(rcol);
151
152 FREE(ptr);
153}
void regex_color_clear(struct RegexColor *rcol)
Free the contents of a Regex colour.
Definition: regex.c:125
A regular expression and a color to highlight a line.
Definition: regex4.h:36
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regex_color_new()

struct RegexColor * regex_color_new ( void  )

Create a new RegexColor.

Return values
ptrNew RegexColor

Definition at line 159 of file regex.c.

160{
161 return MUTT_MEM_CALLOC(1, struct RegexColor);
162}
#define MUTT_MEM_CALLOC(n, type)
Definition: memory.h:47
+ Here is the caller graph for this function:

◆ regex_color_list_new()

struct RegexColorList * regex_color_list_new ( void  )

Create a new RegexColorList.

Return values
ptrNew RegexColorList

Definition at line 168 of file regex.c.

169{
170 struct RegexColorList *rcl = MUTT_MEM_CALLOC(1, struct RegexColorList);
171
172 STAILQ_INIT(rcl);
173
174 struct RegexColor *rcol = regex_color_new();
175 STAILQ_INSERT_TAIL(rcl, rcol, entries);
176
177 return rcl;
178}
struct RegexColor * regex_color_new(void)
Create a new RegexColor.
Definition: regex.c:159
#define STAILQ_INSERT_TAIL(head, elm, field)
Definition: queue.h:427
+ Here is the call graph for this function:

◆ regex_color_list_clear()

void regex_color_list_clear ( struct RegexColorList *  rcl)

Free the contents of a RegexColorList.

Parameters
rclList to clear

Free each of the RegexColorList in a list.

Note
The list object isn't freed, only emptied

Definition at line 188 of file regex.c.

189{
190 if (!rcl)
191 return;
192
193 struct RegexColor *np = NULL, *tmp = NULL;
194 STAILQ_FOREACH_SAFE(np, rcl, entries, tmp)
195 {
196 STAILQ_REMOVE(rcl, np, RegexColor, entries);
197 regex_color_free(rcl, &np);
198 }
199}
void regex_color_free(struct RegexColorList *list, struct RegexColor **ptr)
Free a Regex colour.
Definition: regex.c:144
#define STAILQ_REMOVE(head, elm, type, field)
Definition: queue.h:441
#define STAILQ_FOREACH_SAFE(var, head, field, tvar)
Definition: queue.h:400
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regex_colors_get_list()

struct RegexColorList * regex_colors_get_list ( enum ColorId  cid)

Return the RegexColorList for a Colour ID.

Parameters
cidColour ID, e.g. MT_COLOR_BODY
Return values
ptrRegexColorList

Definition at line 206 of file regex.c.

207{
208 switch (cid)
209 {
211 return &AttachList;
212 case MT_COLOR_BODY:
213 return &BodyList;
214 case MT_COLOR_HEADER:
215 return &HeaderList;
216 case MT_COLOR_INDEX:
217 return &IndexList;
219 return &IndexAuthorList;
221 return &IndexCollapsedList;
223 return &IndexDateList;
225 return &IndexFlagsList;
227 return &IndexLabelList;
229 return &IndexNumberList;
231 return &IndexSizeList;
233 return &IndexSubjectList;
235 return &IndexTagList;
237 return &IndexTagsList;
238 case MT_COLOR_STATUS:
239 return &StatusList;
240 default:
241 return NULL;
242 }
243}
@ MT_COLOR_INDEX_AUTHOR
Index: author field.
Definition: color.h:88
@ MT_COLOR_HEADER
Message headers (takes a pattern)
Definition: color.h:49
@ MT_COLOR_STATUS
Status bar (takes a pattern)
Definition: color.h:79
@ MT_COLOR_INDEX_SIZE
Index: size field.
Definition: color.h:94
@ MT_COLOR_INDEX_TAGS
Index: tags field (g, J)
Definition: color.h:97
@ MT_COLOR_INDEX_SUBJECT
Index: subject field.
Definition: color.h:95
@ MT_COLOR_BODY
Pager: highlight body of message (takes a pattern)
Definition: color.h:40
@ MT_COLOR_INDEX_DATE
Index: date field.
Definition: color.h:90
@ MT_COLOR_INDEX_TAG
Index: tag field (G)
Definition: color.h:96
@ MT_COLOR_ATTACH_HEADERS
MIME attachment test (takes a pattern)
Definition: color.h:39
@ MT_COLOR_INDEX_LABEL
Index: label field.
Definition: color.h:92
@ MT_COLOR_INDEX
Index: default colour.
Definition: color.h:87
@ MT_COLOR_INDEX_NUMBER
Index: index number.
Definition: color.h:93
@ MT_COLOR_INDEX_FLAGS
Index: flags field.
Definition: color.h:91
@ MT_COLOR_INDEX_COLLAPSED
Index: number of messages in collapsed thread.
Definition: color.h:89
+ Here is the caller graph for this function:

◆ add_pattern()

static enum CommandResult add_pattern ( struct RegexColorList *  rcl,
const char *  s,
struct AttrColor ac_val,
struct Buffer err,
bool  is_index,
int  match 
)
static

Associate a colour to a pattern.

Parameters
rclList of existing colours
sString to match
ac_valColour value to use
errBuffer for error messages
is_indextrue of this is for the index
matchNumber of regex subexpression to match (0 for entire pattern)
Return values
CommandResultResult e.g. MUTT_CMD_SUCCESS

is_index used to store compiled pattern only for 'index' color object when called from parse_color()

Definition at line 258 of file regex.c.

261{
262 struct RegexColor *rcol = NULL;
263
264 STAILQ_FOREACH(rcol, rcl, entries)
265 {
266 if (mutt_str_equal(s, rcol->pattern))
267 break;
268 }
269
270 if (rcol) // found a matching regex
271 {
272 struct AttrColor *ac = &rcol->attr_color;
273 attr_color_overwrite(ac, ac_val);
274 }
275 else
276 {
277 rcol = regex_color_new();
278 if (is_index)
279 {
280 struct Buffer *buf = buf_pool_get();
281 buf_strcpy(buf, s);
282 const char *const c_simple_search = cs_subset_string(NeoMutt->sub, "simple_search");
283 mutt_check_simple(buf, NONULL(c_simple_search));
284 struct MailboxView *mv_cur = get_current_mailbox_view();
286 buf_pool_release(&buf);
287 if (!rcol->color_pattern)
288 {
289 regex_color_free(rcl, &rcol);
290 return MUTT_CMD_ERROR;
291 }
292 }
293 else
294 {
295 // Smart case matching
296 uint16_t flags = mutt_mb_is_lower(s) ? REG_ICASE : 0;
297
298 const int r = REG_COMP(&rcol->regex, s, flags);
299 if (r != 0)
300 {
301 regerror(r, &rcol->regex, err->data, err->dsize);
302 regex_color_free(rcl, &rcol);
303 return MUTT_CMD_ERROR;
304 }
305 }
306 rcol->pattern = mutt_str_dup(s);
307 rcol->match = match;
308
309 struct AttrColor *ac = &rcol->attr_color;
310
311 attr_color_overwrite(ac, ac_val);
312
313 STAILQ_INSERT_TAIL(rcl, rcol, entries);
314 }
315
316 if (is_index)
317 {
318 /* force re-caching of index colors */
319 struct EventColor ev_c = { MT_COLOR_INDEX, NULL };
321 }
322
323 return MUTT_CMD_SUCCESS;
324}
void attr_color_overwrite(struct AttrColor *ac_old, const struct AttrColor *ac_new)
Update an AttrColor in-place.
Definition: attr.c:395
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
Definition: buffer.c:395
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Definition: buffer.h:96
struct Notify * ColorsNotify
Notifications: ColorId, EventColor.
Definition: notify.c:36
@ MUTT_CMD_SUCCESS
Success: Command worked.
Definition: command.h:38
@ MUTT_CMD_ERROR
Error: Can't help the user.
Definition: command.h:36
struct PatternList * mutt_pattern_comp(struct MailboxView *mv, const char *s, PatternCompFlags flags, struct Buffer *err)
Create a Pattern.
Definition: compile.c:902
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
Definition: helpers.c:291
struct MailboxView * get_current_mailbox_view(void)
Get the current Mailbox view.
Definition: index.c:689
bool mutt_mb_is_lower(const char *s)
Does a multi-byte string contain only lowercase characters?
Definition: mbyte.c:354
bool notify_send(struct Notify *notify, enum NotifyType event_type, int event_subtype, void *event_data)
Send out a notification message.
Definition: notify.c:173
char * mutt_str_dup(const char *str)
Copy a string, safely.
Definition: string.c:255
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
Definition: string.c:660
@ NT_COLOR_SET
Color has been set.
Definition: notify2.h:43
@ NT_COLOR
Colour has changed, NotifyColor, EventColor.
Definition: notify_type.h:41
#define MUTT_PC_FULL_MSG
Enable body and header matching.
Definition: lib.h:69
void mutt_check_simple(struct Buffer *s, const char *simple)
Convert a simple search into a real request.
Definition: pattern.c:109
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
Definition: pool.c:82
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
Definition: pool.c:96
#define STAILQ_FOREACH(var, head, field)
Definition: queue.h:390
#define REG_COMP(preg, regex, cflags)
Compile a regular expression.
Definition: regex3.h:50
#define NONULL(x)
Definition: string2.h:43
A curses colour and its attributes.
Definition: attr.h:66
String manipulation buffer.
Definition: buffer.h:36
size_t dsize
Length of data.
Definition: buffer.h:39
char * data
Pointer to data.
Definition: buffer.h:37
An Event that happened to a Colour.
Definition: notify2.h:55
View of a Mailbox.
Definition: mview.h:40
Container for Accounts, Notifications.
Definition: neomutt.h:43
struct ConfigSubset * sub
Inherited config items.
Definition: neomutt.h:47
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regex_colors_parse_color_list()

bool regex_colors_parse_color_list ( enum ColorId  cid,
const char *  pat,
struct AttrColor ac,
int *  rc,
struct Buffer err 
)

Parse a Regex 'color' command.

Parameters
cidColour ID, should be MT_COLOR_STATUS
patRegex pattern
acColour value to use
rcReturn code, e.g. MUTT_CMD_SUCCESS
errBuffer for error messages
Return values
trueColour was parsed

Parse a Regex 'color' command, e.g. "color index green default pattern"

Definition at line 337 of file regex.c.

340{
341 if (cid == MT_COLOR_STATUS)
342 return false;
343
344 struct RegexColorList *rcl = regex_colors_get_list(cid);
345 if (!rcl)
346 return false;
347
348 bool is_index = false;
349 switch (cid)
350 {
352 case MT_COLOR_BODY:
353 break;
354 case MT_COLOR_HEADER:
355 break;
356 case MT_COLOR_INDEX:
367 is_index = true;
368 break;
369 default:
370 return false;
371 }
372
373 *rc = add_pattern(rcl, pat, ac, err, is_index, 0);
374
375 struct Buffer *buf = buf_pool_get();
376 get_colorid_name(cid, buf);
377 color_debug(LL_DEBUG5, "NT_COLOR_SET: %s\n", buf_string(buf));
378 buf_pool_release(&buf);
379
380 if (!is_index) // else it will be logged in add_pattern()
381 {
382 struct EventColor ev_c = { cid, NULL };
384 }
385
386 return true;
387}
void get_colorid_name(unsigned int cid, struct Buffer *buf)
Get the name of a Colour ID.
Definition: command.c:128
static enum CommandResult add_pattern(struct RegexColorList *rcl, const char *s, struct AttrColor *ac_val, struct Buffer *err, bool is_index, int match)
Associate a colour to a pattern.
Definition: regex.c:258
struct RegexColorList * regex_colors_get_list(enum ColorId cid)
Return the RegexColorList for a Colour ID.
Definition: regex.c:206
enum ColorId cid
Colour ID that has changed.
Definition: notify2.h:56
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regex_colors_parse_status_list()

int regex_colors_parse_status_list ( enum ColorId  cid,
const char *  pat,
struct AttrColor ac,
int  match,
struct Buffer err 
)

Parse a Regex 'color status' command.

Parameters
cidColour ID, should be MT_COLOR_STATUS
patRegex pattern
acColour value to use
matchUse the nth regex submatch
errBuffer for error messages
Return values
CommandResultResult e.g. MUTT_CMD_SUCCESS

Definition at line 398 of file regex.c.

400{
401 if (cid != MT_COLOR_STATUS)
402 return MUTT_CMD_ERROR;
403
404 int rc = add_pattern(&StatusList, pat, ac, err, false, match);
405 if (rc != MUTT_CMD_SUCCESS)
406 return rc;
407
408 struct Buffer *buf = buf_pool_get();
409 get_colorid_name(cid, buf);
410 color_debug(LL_DEBUG5, "NT_COLOR_SET: %s\n", buf_string(buf));
411 buf_pool_release(&buf);
412
413 struct EventColor ev_c = { cid, NULL };
415
416 return rc;
417}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ regex_colors_parse_uncolor()

bool regex_colors_parse_uncolor ( enum ColorId  cid,
const char *  pat 
)

Parse a Regex 'uncolor' command.

Parameters
cidColour ID, e.g. MT_COLOR_STATUS
patPattern to remove (NULL to remove all)
Return values
trueIf colours were unset

Definition at line 425 of file regex.c.

426{
427 struct RegexColorList *cl = regex_colors_get_list(cid);
428 if (!cl)
429 return false;
430
431 if (!pat) // Reset all patterns
432 {
433 if (STAILQ_EMPTY(cl))
434 return true;
435
436 mutt_debug(LL_NOTIFY, "NT_COLOR_RESET: [ALL]\n");
437 struct EventColor ev_c = { cid, NULL };
439
441 return true;
442 }
443
444 bool rc = false;
445 struct RegexColor *np = NULL, *prev = NULL;
446 prev = NULL;
447 STAILQ_FOREACH(np, cl, entries)
448 {
449 if (mutt_str_equal(pat, np->pattern))
450 {
451 rc = true;
452
453 color_debug(LL_DEBUG1, "Freeing pattern \"%s\" from XXX\n", pat);
454 if (prev)
455 STAILQ_REMOVE_AFTER(cl, prev, entries);
456 else
457 STAILQ_REMOVE_HEAD(cl, entries);
458
459 mutt_debug(LL_NOTIFY, "NT_COLOR_RESET: XXX\n");
460 struct EventColor ev_c = { cid, &np->attr_color };
462
463 regex_color_free(cl, &np);
464 break;
465 }
466 prev = np;
467 }
468
469 return rc;
470}
#define mutt_debug(LEVEL,...)
Definition: logging2.h:90
@ LL_DEBUG1
Log at debug level 1.
Definition: logging2.h:44
@ LL_NOTIFY
Log of notifications.
Definition: logging2.h:49
@ NT_COLOR_RESET
Color has been reset/removed.
Definition: notify2.h:44
#define STAILQ_REMOVE_HEAD(head, field)
Definition: queue.h:461
#define STAILQ_REMOVE_AFTER(head, elm, field)
Definition: queue.h:455
#define STAILQ_EMPTY(head)
Definition: queue.h:382
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ AttachList

struct RegexColorList AttachList

List of colours applied to the attachment headers.

Definition at line 48 of file regex.c.

◆ BodyList

struct RegexColorList BodyList

List of colours applied to the email body.

Definition at line 49 of file regex.c.

◆ HeaderList

struct RegexColorList HeaderList

List of colours applied to the email headers.

Definition at line 50 of file regex.c.

◆ IndexAuthorList

struct RegexColorList IndexAuthorList

List of colours applied to the author in the index.

Definition at line 51 of file regex.c.

◆ IndexCollapsedList

struct RegexColorList IndexCollapsedList

List of colours applied to a collapsed thread in the index.

Definition at line 52 of file regex.c.

◆ IndexDateList

struct RegexColorList IndexDateList

List of colours applied to the date in the index.

Definition at line 53 of file regex.c.

◆ IndexFlagsList

struct RegexColorList IndexFlagsList

List of colours applied to the flags in the index.

Definition at line 54 of file regex.c.

◆ IndexLabelList

struct RegexColorList IndexLabelList

List of colours applied to the label in the index.

Definition at line 55 of file regex.c.

◆ IndexList

struct RegexColorList IndexList

List of default colours applied to the index.

Definition at line 56 of file regex.c.

◆ IndexNumberList

struct RegexColorList IndexNumberList

List of colours applied to the message number in the index.

Definition at line 57 of file regex.c.

◆ IndexSizeList

struct RegexColorList IndexSizeList

List of colours applied to the size in the index.

Definition at line 58 of file regex.c.

◆ IndexSubjectList

struct RegexColorList IndexSubjectList

List of colours applied to the subject in the index.

Definition at line 59 of file regex.c.

◆ IndexTagList

struct RegexColorList IndexTagList

List of colours applied to tags in the index.

Definition at line 60 of file regex.c.

◆ IndexTagsList

struct RegexColorList IndexTagsList

List of colours applied to the tags in the index.

Definition at line 61 of file regex.c.

◆ StatusList

struct RegexColorList StatusList

List of colours applied to the status bar.

Definition at line 62 of file regex.c.