NeoMutt  2025-09-05-43-g177ed6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
notify.c File Reference

Dump all notifications. More...

#include "config.h"
#include <stddef.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "lib.h"
#include "color/lib.h"
#include "mview.h"
+ Include dependency graph for notify.c:

Go to the source code of this file.

Functions

static void notify_dump_account (struct NotifyCallback *nc)
 
static void notify_dump_color (struct NotifyCallback *nc)
 
static void notify_dump_command (struct NotifyCallback *nc)
 
static void notify_dump_config (struct NotifyCallback *nc)
 
static void notify_dump_mview (struct NotifyCallback *nc)
 
static void notify_dump_email (struct NotifyCallback *nc)
 
static void notify_dump_global (struct NotifyCallback *nc)
 
static void notify_dump_mailbox (struct NotifyCallback *nc)
 
static void notify_dump_window_state (struct NotifyCallback *nc)
 
static void notify_dump_window_focus (struct NotifyCallback *nc)
 
int debug_all_observer (struct NotifyCallback *nc)
 

Variables

const struct Mapping ColorFields []
 Mapping of colour names to their IDs.
 

Detailed Description

Dump all notifications.

Authors
  • Richard Russon

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 notify.c.

Function Documentation

◆ notify_dump_account()

static void notify_dump_account ( struct NotifyCallback * nc)
static

Definition at line 42 of file notify.c.

43{
44 struct EventAccount *ev_a = nc->event_data;
45 struct Account *a = ev_a->account;
46 if (!a)
47 return;
48
49 mutt_debug(LL_DEBUG1, " Account: %p (%s) %s\n", (void *) a,
50 name_mailbox_type(a->type), NONULL(a->name));
51}
const char * name_mailbox_type(enum MailboxType type)
Definition names.c:123
#define mutt_debug(LEVEL,...)
Definition logging2.h:90
@ LL_DEBUG1
Log at debug level 1.
Definition logging2.h:44
#define NONULL(x)
Definition string2.h:43
A group of associated Mailboxes.
Definition account.h:36
An Event that happened to an Account.
Definition account.h:79
struct Account * account
The Account this Event relates to.
Definition account.h:80
void * event_data
Data from notify_send()
Definition observer.h:38
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notify_dump_color()

static void notify_dump_color ( struct NotifyCallback * nc)
static

Definition at line 53 of file notify.c.

54{
55 struct EventColor *ev_c = nc->event_data;
56
57 const char *color = NULL;
58
59 if (ev_c->cid == MT_COLOR_MAX)
60 color = "ALL";
61
62 if (!color)
63 color = mutt_map_get_name(ev_c->cid, ColorFields);
64
65 if (!color)
66 color = "UNKNOWN";
67
68 mutt_debug(LL_DEBUG1, " Color: %s %s (%d)\n",
69 (nc->event_subtype == NT_COLOR_SET) ? "set" : "reset", color, ev_c->cid);
70}
const struct Mapping ColorFields[]
Mapping of colour names to their IDs.
Definition commands.c:55
@ MT_COLOR_MAX
Definition color.h:98
const char * mutt_map_get_name(int val, const struct Mapping *map)
Lookup a string for a constant.
Definition mapping.c:42
@ NT_COLOR_SET
Color has been set.
Definition notify2.h:43
An Event that happened to a Colour.
Definition notify2.h:55
enum ColorId cid
Colour ID that has changed.
Definition notify2.h:56
int event_subtype
Send: Event subtype, e.g. NT_ACCOUNT_ADD.
Definition observer.h:37
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notify_dump_command()

static void notify_dump_command ( struct NotifyCallback * nc)
static

Definition at line 72 of file notify.c.

73{
74 struct Command *cmd = nc->event_data;
75
76 if (cmd->data < 4096)
77 mutt_debug(LL_DEBUG1, " Command: %s, data: %ld\n", cmd->name, cmd->data);
78 else
79 mutt_debug(LL_DEBUG1, " Command: %s, data: %p\n", cmd->name, (void *) cmd->data);
80}
intptr_t data
Data or flags to pass to the command.
Definition command.h:66
const char * name
Name of the command.
Definition command.h:51
+ Here is the caller graph for this function:

◆ notify_dump_config()

static void notify_dump_config ( struct NotifyCallback * nc)
static

Definition at line 82 of file notify.c.

83{
84 struct EventConfig *ev_c = nc->event_data;
85
86 struct Buffer *value = buf_pool_get();
87 cs_he_string_get(ev_c->sub->cs, ev_c->he, value);
88 mutt_debug(LL_DEBUG1, " Config: %s %s = %s\n",
90 buf_pool_release(&value);
91}
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Definition buffer.h:96
int cs_he_string_get(const struct ConfigSet *cs, struct HashElem *he, struct Buffer *result)
Get a config item as a string.
Definition set.c:691
const char * name_notify_config(int id)
Definition names.c:179
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
String manipulation buffer.
Definition buffer.h:36
struct ConfigSet * cs
Parent ConfigSet.
Definition subset.h:50
A config-change event.
Definition subset.h:70
const struct ConfigSubset * sub
Config Subset.
Definition subset.h:71
const char * name
Name of config item that changed.
Definition subset.h:72
struct HashElem * he
Config item that changed.
Definition subset.h:73
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notify_dump_mview()

static void notify_dump_mview ( struct NotifyCallback * nc)
static

Definition at line 93 of file notify.c.

94{
95 struct EventMview *ev_m = nc->event_data;
96
97 const char *path = "NONE";
98 if (ev_m->mv && ev_m->mv->mailbox)
99 path = mailbox_path(ev_m->mv->mailbox);
100
101 mutt_debug(LL_DEBUG1, " MailboxView: %s %s\n",
103}
static const char * mailbox_path(const struct Mailbox *m)
Get the Mailbox's path string.
Definition mailbox.h:223
const char * name_notify_mview(int id)
Definition names.c:206
An Event that happened to an MailboxView.
Definition mview.h:71
struct MailboxView * mv
The MailboxView this Event relates to.
Definition mview.h:72
struct Mailbox * mailbox
Current Mailbox.
Definition mview.h:51
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notify_dump_email()

static void notify_dump_email ( struct NotifyCallback * nc)
static

Definition at line 105 of file notify.c.

106{
107 struct EventEmail *ev_e = nc->event_data;
108
109 mutt_debug(LL_DEBUG1, " Email: %d\n", ev_e->num_emails);
110 for (size_t i = 0; i < ev_e->num_emails; i++)
111 {
112 mutt_debug(LL_DEBUG1, " : %p\n", (void *) ev_e->emails[i]);
113 }
114}
An Event that happened to an Email.
Definition email.h:196
int num_emails
Number of Emails the event applies to.
Definition email.h:197
struct Email ** emails
Emails affected by the event.
Definition email.h:198
+ Here is the caller graph for this function:

◆ notify_dump_global()

static void notify_dump_global ( struct NotifyCallback * nc)
static

Definition at line 116 of file notify.c.

117{
119}
const char * name_notify_global(int id)
Definition names.c:168
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notify_dump_mailbox()

static void notify_dump_mailbox ( struct NotifyCallback * nc)
static

Definition at line 121 of file notify.c.

122{
123 struct EventMailbox *ev_m = nc->event_data;
124
125 struct Mailbox *m = ev_m->mailbox;
126 const char *path = m ? mailbox_path(m) : "";
127 mutt_debug(LL_DEBUG1, " Mailbox: %s %s\n",
129}
const char * name_notify_mailbox(int id)
Definition names.c:190
An Event that happened to a Mailbox.
Definition mailbox.h:199
struct Mailbox * mailbox
The Mailbox this Event relates to.
Definition mailbox.h:200
A mailbox.
Definition mailbox.h:79
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notify_dump_window_state()

static void notify_dump_window_state ( struct NotifyCallback * nc)
static

Definition at line 131 of file notify.c.

132{
133 struct EventWindow *ev_w = nc->event_data;
134 const struct MuttWindow *win = ev_w->win;
135 WindowNotifyFlags flags = ev_w->flags;
136
137 struct Buffer *buf = buf_pool_get();
138
139 buf_add_printf(buf, "[%s] ", mutt_window_win_name(win));
140
141 if (flags & WN_VISIBLE)
142 buf_addstr(buf, "visible ");
143 if (flags & WN_HIDDEN)
144 buf_addstr(buf, "hidden ");
145
146 if (flags & WN_MOVED)
147 {
148 buf_add_printf(buf, "moved (C%d,R%d)->(C%d,R%d) ", win->old.col_offset,
149 win->old.row_offset, win->state.col_offset, win->state.row_offset);
150 }
151
152 if (flags & WN_TALLER)
153 buf_add_printf(buf, "taller [%d->%d] ", win->old.rows, win->state.rows);
154 if (flags & WN_SHORTER)
155 buf_add_printf(buf, "shorter [%d->%d] ", win->old.rows, win->state.rows);
156 if (flags & WN_WIDER)
157 buf_add_printf(buf, "wider [%d->%d] ", win->old.cols, win->state.cols);
158 if (flags & WN_NARROWER)
159 buf_add_printf(buf, "narrower [%d->%d] ", win->old.cols, win->state.cols);
160
161 mutt_debug(LL_DEBUG1, " Window: %s\n", buf_string(buf));
162
163 buf_pool_release(&buf);
164}
int buf_add_printf(struct Buffer *buf, const char *fmt,...)
Format a string appending a Buffer.
Definition buffer.c:204
size_t buf_addstr(struct Buffer *buf, const char *s)
Add a string to a Buffer.
Definition buffer.c:226
const char * mutt_window_win_name(const struct MuttWindow *win)
Get the name of a Window.
#define WN_MOVED
Window moved.
uint8_t WindowNotifyFlags
Flags for Changes to a MuttWindow, e.g. WN_TALLER.
#define WN_WIDER
Window became wider.
#define WN_VISIBLE
Window became visible.
#define WN_HIDDEN
Window became hidden.
#define WN_TALLER
Window became taller.
#define WN_NARROWER
Window became narrower.
#define WN_SHORTER
Window became shorter.
An Event that happened to a Window.
struct MuttWindow * win
Window that changed.
WindowNotifyFlags flags
Attributes of Window that changed.
struct WindowState old
Previous state of the Window.
struct WindowState state
Current state of the Window.
short cols
Number of columns, can be MUTT_WIN_SIZE_UNLIMITED.
Definition mutt_window.h:61
short row_offset
Absolute on-screen row.
Definition mutt_window.h:64
short col_offset
Absolute on-screen column.
Definition mutt_window.h:63
short rows
Number of rows, can be MUTT_WIN_SIZE_UNLIMITED.
Definition mutt_window.h:62
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notify_dump_window_focus()

static void notify_dump_window_focus ( struct NotifyCallback * nc)
static

Definition at line 166 of file notify.c.

167{
168 struct EventWindow *ev_w = nc->event_data;
169 struct MuttWindow *win = ev_w->win;
170
171 struct Buffer *buf = buf_pool_get();
172
173 buf_addstr(buf, "Focus: ");
174
175 if (win)
176 {
177 struct MuttWindow *dlg = dialog_find(win);
178 if (dlg && (dlg != win))
179 buf_add_printf(buf, "%s:", mutt_window_win_name(dlg));
180
181 buf_add_printf(buf, "%s ", mutt_window_win_name(win));
182
183 buf_add_printf(buf, "(C%d,R%d) [%dx%d]", win->state.col_offset,
184 win->state.row_offset, win->state.cols, win->state.rows);
185 }
186 else
187 {
188 buf_addstr(buf, "NONE");
189 }
190
191 mutt_debug(LL_DEBUG1, " Window: %s\n", buf_string(buf));
192
193 buf_pool_release(&buf);
194}
struct MuttWindow * dialog_find(struct MuttWindow *win)
Find the parent Dialog of a Window.
Definition dialog.c:89
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ debug_all_observer()

int debug_all_observer ( struct NotifyCallback * nc)

Definition at line 196 of file notify.c.

197{
198 mutt_debug(LL_DEBUG1, "\033[1;31mNotification:\033[0m %s\n",
200
201 switch (nc->event_type)
202 {
203 case NT_ACCOUNT:
205 break;
206 case NT_COLOR:
208 break;
209 case NT_COMMAND:
211 break;
212 case NT_CONFIG:
214 break;
215 case NT_MVIEW:
217 break;
218 case NT_EMAIL:
220 break;
221 case NT_GLOBAL:
223 break;
224 case NT_MAILBOX:
226 break;
227 case NT_RESIZE:
228 case NT_TIMEOUT:
229 break; // no other data
230 case NT_WINDOW:
233 else if (nc->event_subtype == NT_WINDOW_FOCUS)
235 break;
236 default:
237 mutt_debug(LL_DEBUG1, " Event Type: %d\n", nc->event_type);
238 mutt_debug(LL_DEBUG1, " Event Sub-type: %d\n", nc->event_subtype);
239 mutt_debug(LL_DEBUG1, " Event Data: %p\n", nc->event_data);
240 break;
241 }
242
243 mutt_debug(LL_DEBUG1, " Global Data: %p\n", nc->global_data);
244
245 mutt_debug(LL_DEBUG5, "debug done\n");
246 return 0;
247}
const char * name_notify_type(enum NotifyType type)
Definition names.c:92
static void notify_dump_global(struct NotifyCallback *nc)
Definition notify.c:116
static void notify_dump_config(struct NotifyCallback *nc)
Definition notify.c:82
static void notify_dump_mview(struct NotifyCallback *nc)
Definition notify.c:93
static void notify_dump_command(struct NotifyCallback *nc)
Definition notify.c:72
static void notify_dump_color(struct NotifyCallback *nc)
Definition notify.c:53
static void notify_dump_mailbox(struct NotifyCallback *nc)
Definition notify.c:121
static void notify_dump_window_focus(struct NotifyCallback *nc)
Definition notify.c:166
static void notify_dump_account(struct NotifyCallback *nc)
Definition notify.c:42
static void notify_dump_email(struct NotifyCallback *nc)
Definition notify.c:105
static void notify_dump_window_state(struct NotifyCallback *nc)
Definition notify.c:131
@ LL_DEBUG5
Log at debug level 5.
Definition logging2.h:48
@ NT_WINDOW_STATE
Window state has changed, e.g. WN_VISIBLE.
@ NT_WINDOW_FOCUS
Window focus has changed.
@ NT_TIMEOUT
Timeout has occurred.
Definition notify_type.h:56
@ NT_WINDOW
MuttWindow has changed, NotifyWindow, EventWindow.
Definition notify_type.h:57
@ NT_CONFIG
Config has changed, NotifyConfig, EventConfig.
Definition notify_type.h:43
@ NT_COLOR
Colour has changed, NotifyColor, EventColor.
Definition notify_type.h:41
@ NT_EMAIL
Email has changed, NotifyEmail, EventEmail.
Definition notify_type.h:44
@ NT_MAILBOX
Mailbox has changed, NotifyMailbox, EventMailbox.
Definition notify_type.h:49
@ NT_COMMAND
A Command has been executed, Command.
Definition notify_type.h:42
@ NT_ACCOUNT
Account has changed, NotifyAccount, EventAccount.
Definition notify_type.h:36
@ NT_MVIEW
MailboxView has changed, NotifyMview, EventMview.
Definition notify_type.h:50
@ NT_GLOBAL
Not object-related, NotifyGlobal.
Definition notify_type.h:46
@ NT_RESIZE
Window has been resized.
Definition notify_type.h:52
enum NotifyType event_type
Send: Event type, e.g. NT_ACCOUNT.
Definition observer.h:36
void * global_data
Data from notify_observer_add()
Definition observer.h:39
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ ColorFields

const struct Mapping ColorFields[]
extern

Mapping of colour names to their IDs.

Definition at line 55 of file commands.c.

55 {
56 // clang-format off
57 { "attachment", MT_COLOR_ATTACHMENT },
58 { "attach_headers", MT_COLOR_ATTACH_HEADERS },
59 { "body", MT_COLOR_BODY },
60 { "bold", MT_COLOR_BOLD },
61 { "compose_header", MT_COLOR_COMPOSE_HEADER },
62 { "compose_security_both", MT_COLOR_COMPOSE_SECURITY_BOTH },
63 { "compose_security_encrypt", MT_COLOR_COMPOSE_SECURITY_ENCRYPT },
64 { "compose_security_none", MT_COLOR_COMPOSE_SECURITY_NONE },
65 { "compose_security_sign", MT_COLOR_COMPOSE_SECURITY_SIGN },
66 { "error", MT_COLOR_ERROR },
67 { "hdrdefault", MT_COLOR_HDRDEFAULT },
68 { "header", MT_COLOR_HEADER },
69 { "index", MT_COLOR_INDEX },
70 { "index_author", MT_COLOR_INDEX_AUTHOR },
71 { "index_collapsed", MT_COLOR_INDEX_COLLAPSED },
72 { "index_date", MT_COLOR_INDEX_DATE },
73 { "index_flags", MT_COLOR_INDEX_FLAGS },
74 { "index_label", MT_COLOR_INDEX_LABEL },
75 { "index_number", MT_COLOR_INDEX_NUMBER },
76 { "index_size", MT_COLOR_INDEX_SIZE },
77 { "index_subject", MT_COLOR_INDEX_SUBJECT },
78 { "index_tag", MT_COLOR_INDEX_TAG },
79 { "index_tags", MT_COLOR_INDEX_TAGS },
80 { "indicator", MT_COLOR_INDICATOR },
81 { "italic", MT_COLOR_ITALIC },
82 { "markers", MT_COLOR_MARKERS },
83 { "message", MT_COLOR_MESSAGE },
84 { "normal", MT_COLOR_NORMAL },
85 { "options", MT_COLOR_OPTIONS },
86 { "progress", MT_COLOR_PROGRESS },
87 { "prompt", MT_COLOR_PROMPT },
88 { "quoted0", MT_COLOR_QUOTED0 },
89 { "quoted1", MT_COLOR_QUOTED1 },
90 { "quoted2", MT_COLOR_QUOTED2 },
91 { "quoted3", MT_COLOR_QUOTED3 },
92 { "quoted4", MT_COLOR_QUOTED4 },
93 { "quoted5", MT_COLOR_QUOTED5 },
94 { "quoted6", MT_COLOR_QUOTED6 },
95 { "quoted7", MT_COLOR_QUOTED7 },
96 { "quoted8", MT_COLOR_QUOTED8 },
97 { "quoted9", MT_COLOR_QUOTED9 },
98 { "search", MT_COLOR_SEARCH },
99 { "sidebar_background", MT_COLOR_SIDEBAR_BACKGROUND },
100 { "sidebar_divider", MT_COLOR_SIDEBAR_DIVIDER },
101 { "sidebar_flagged", MT_COLOR_SIDEBAR_FLAGGED },
102 { "sidebar_highlight", MT_COLOR_SIDEBAR_HIGHLIGHT },
103 { "sidebar_indicator", MT_COLOR_SIDEBAR_INDICATOR },
104 { "sidebar_new", MT_COLOR_SIDEBAR_NEW },
105 { "sidebar_ordinary", MT_COLOR_SIDEBAR_ORDINARY },
106 { "sidebar_spool_file", MT_COLOR_SIDEBAR_SPOOLFILE },
107 { "sidebar_unread", MT_COLOR_SIDEBAR_UNREAD },
108 { "signature", MT_COLOR_SIGNATURE },
109 { "status", MT_COLOR_STATUS },
110 { "stripe_even", MT_COLOR_STRIPE_EVEN},
111 { "stripe_odd", MT_COLOR_STRIPE_ODD},
112 { "tilde", MT_COLOR_TILDE },
113 { "tree", MT_COLOR_TREE },
114 { "underline", MT_COLOR_UNDERLINE },
115 { "warning", MT_COLOR_WARNING },
116 // Deprecated
117 { "quoted", MT_COLOR_QUOTED0 },
118 { "sidebar_spoolfile", MT_COLOR_SIDEBAR_SPOOLFILE },
119 { NULL, 0 },
120 // clang-format on
121};
@ MT_COLOR_SIDEBAR_DIVIDER
Line dividing sidebar from the index/pager.
Definition color.h:70
@ MT_COLOR_MARKERS
Pager: markers, line continuation.
Definition color.h:52
@ MT_COLOR_COMPOSE_SECURITY_ENCRYPT
Mail will be encrypted.
Definition color.h:44
@ MT_COLOR_MESSAGE
Informational message.
Definition color.h:53
@ MT_COLOR_INDEX_AUTHOR
Index: author field.
Definition color.h:88
@ MT_COLOR_QUOTED0
Pager: quoted text, level 0.
Definition color.h:58
@ MT_COLOR_SIDEBAR_NEW
Mailbox with new mail.
Definition color.h:74
@ 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_SIDEBAR_UNREAD
Mailbox with unread mail.
Definition color.h:77
@ MT_COLOR_INDEX_SIZE
Index: size field.
Definition color.h:94
@ MT_COLOR_INDICATOR
Selected item in list.
Definition color.h:50
@ MT_COLOR_STRIPE_EVEN
Stripes: even lines of the Help Page.
Definition color.h:80
@ MT_COLOR_SIDEBAR_SPOOLFILE
$spool_file (Spool mailbox)
Definition color.h:76
@ MT_COLOR_ERROR
Error message.
Definition color.h:47
@ MT_COLOR_COMPOSE_SECURITY_NONE
Mail will not be encrypted or signed.
Definition color.h:45
@ MT_COLOR_SIDEBAR_ORDINARY
Mailbox with no new or flagged messages.
Definition color.h:75
@ MT_COLOR_QUOTED1
Pager: quoted text, level 1.
Definition color.h:59
@ MT_COLOR_INDEX_TAGS
Index: tags field (g, J)
Definition color.h:97
@ MT_COLOR_QUOTED3
Pager: quoted text, level 3.
Definition color.h:61
@ MT_COLOR_BOLD
Bold text.
Definition color.h:41
@ 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_QUOTED6
Pager: quoted text, level 6.
Definition color.h:64
@ MT_COLOR_PROGRESS
Progress bar.
Definition color.h:56
@ MT_COLOR_COMPOSE_SECURITY_BOTH
Mail will be encrypted and signed.
Definition color.h:43
@ MT_COLOR_QUOTED8
Pager: quoted text, level 8.
Definition color.h:66
@ MT_COLOR_SIDEBAR_BACKGROUND
Background colour for the Sidebar.
Definition color.h:69
@ MT_COLOR_INDEX_TAG
Index: tag field (G)
Definition color.h:96
@ MT_COLOR_HDRDEFAULT
Header default colour.
Definition color.h:48
@ MT_COLOR_OPTIONS
Options in prompt.
Definition color.h:55
@ MT_COLOR_TREE
Index: tree-drawing characters.
Definition color.h:83
@ MT_COLOR_QUOTED7
Pager: quoted text, level 7.
Definition color.h:65
@ MT_COLOR_NORMAL
Plain text.
Definition color.h:54
@ MT_COLOR_ATTACH_HEADERS
MIME attachment test (takes a pattern)
Definition color.h:39
@ MT_COLOR_SEARCH
Pager: search matches.
Definition color.h:68
@ MT_COLOR_COMPOSE_SECURITY_SIGN
Mail will be signed.
Definition color.h:46
@ MT_COLOR_INDEX_LABEL
Index: label field.
Definition color.h:92
@ MT_COLOR_ITALIC
Italic text.
Definition color.h:51
@ MT_COLOR_QUOTED4
Pager: quoted text, level 4.
Definition color.h:62
@ MT_COLOR_STRIPE_ODD
Stripes: odd lines of the Help Page.
Definition color.h:81
@ MT_COLOR_PROMPT
Question/user input.
Definition color.h:57
@ MT_COLOR_COMPOSE_HEADER
Header labels, e.g. From:
Definition color.h:42
@ MT_COLOR_INDEX
Index: default colour.
Definition color.h:87
@ MT_COLOR_QUOTED9
Pager: quoted text, level 9.
Definition color.h:67
@ MT_COLOR_QUOTED2
Pager: quoted text, level 2.
Definition color.h:60
@ MT_COLOR_ATTACHMENT
MIME attachments text (entire line)
Definition color.h:38
@ MT_COLOR_SIDEBAR_INDICATOR
Current open mailbox.
Definition color.h:73
@ MT_COLOR_SIDEBAR_HIGHLIGHT
Select cursor.
Definition color.h:72
@ MT_COLOR_WARNING
Warning messages.
Definition color.h:85
@ MT_COLOR_UNDERLINE
Underlined text.
Definition color.h:84
@ MT_COLOR_INDEX_NUMBER
Index: index number.
Definition color.h:93
@ MT_COLOR_SIGNATURE
Pager: signature lines.
Definition color.h:78
@ MT_COLOR_INDEX_FLAGS
Index: flags field.
Definition color.h:91
@ MT_COLOR_QUOTED5
Pager: quoted text, level 5.
Definition color.h:63
@ MT_COLOR_SIDEBAR_FLAGGED
Mailbox with flagged messages.
Definition color.h:71
@ MT_COLOR_TILDE
Pager: empty lines after message.
Definition color.h:82
@ MT_COLOR_INDEX_COLLAPSED
Index: number of messages in collapsed thread.
Definition color.h:89