23#ifndef MUTT_COLOR_REGEX4_H
24#define MUTT_COLOR_REGEX4_H
52extern struct RegexColorList
BodyList;
struct RegexColorList IndexCollapsedList
List of colours applied to a collapsed thread in the index.
struct RegexColorList IndexFlagsList
List of colours applied to the flags in the index.
struct RegexColorList IndexAuthorList
List of colours applied to the author in the index.
struct RegexColorList IndexSubjectList
List of colours applied to the subject in the index.
struct RegexColorList IndexLabelList
List of colours applied to the label in the index.
struct RegexColorList StatusList
List of colours applied to the status bar.
struct RegexColorList IndexList
List of default colours applied to the index.
struct RegexColorList IndexTagList
List of colours applied to tags in the index.
struct RegexColorList BodyList
List of colours applied to the email body.
struct RegexColorList IndexTagsList
List of colours applied to the tags in the index.
struct RegexColorList HeaderList
List of colours applied to the email headers.
struct RegexColorList AttachList
List of colours applied to the attachment headers.
struct RegexColorList IndexDateList
List of colours applied to the date in 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.
Color and attribute parsing.
ColorId
List of all colored objects.
Convenience wrapper for the library headers.
#define STAILQ_HEAD(name, type)
struct RegexColorList * regex_colors_get_list(enum ColorId cid)
Return the RegexColorList for a colour id.
void regex_colors_init(void)
Initialise the Regex colours.
void regex_color_free(struct RegexColorList *list, struct RegexColor **ptr)
Free a Regex colour.
bool regex_colors_parse_uncolor(enum ColorId cid, const char *pat, bool uncolor)
Parse a Regex 'uncolor' command.
bool regex_colors_parse_color_list(enum ColorId cid, const char *pat, uint32_t fg, uint32_t bg, int attrs, int *rc, struct Buffer *err)
Parse a Regex 'color' command.
void regex_colors_cleanup(void)
Clear the Regex colours.
struct RegexColor * regex_color_new(void)
Create a new RegexColor.
int regex_colors_parse_status_list(enum ColorId cid, const char *pat, uint32_t fg, uint32_t bg, int attrs, int match, struct Buffer *err)
Parse a Regex 'color status' command.
void regex_color_list_clear(struct RegexColorList *rcl)
Free the contents of a RegexColorList.
void regex_color_clear(struct RegexColor *rcol)
Free the contents of a Regex colour.
A curses colour and its attributes.
String manipulation buffer.
A regular expression and a color to highlight a line.
regex_t regex
Compiled regex.
struct PatternList * color_pattern
Compiled pattern to speed up index color calculation.
struct AttrColor attr_color
Colour and attributes to apply.
char * pattern
Pattern to match.
bool stop_matching
Used by the pager for body patterns, to prevent the color from being retried once it fails.
int match
Substring to match, 0 for old behaviour.
STAILQ_ENTRY(RegexColor) entries
Linked list.