NeoMutt  2025-01-09-117-gace867
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
expando_status.c
Go to the documentation of this file.
1
35#include "config.h"
36#include <stdbool.h>
37#include <stdio.h>
38#include <sys/types.h>
39#include "mutt/lib.h"
40#include "config/lib.h"
41#include "email/lib.h"
42#include "core/lib.h"
43#include "expando_status.h"
44#include "expando/lib.h"
45#include "menu/lib.h"
46#include "postpone/lib.h"
47#include "globals.h"
48#include "mutt_mailbox.h"
49#include "mutt_thread.h"
50#include "muttlib.h"
51#include "mview.h"
52#include "shared_data.h"
53
54static void index_mailbox_path(const struct ExpandoNode *node, void *data,
55 MuttFormatFlags flags, struct Buffer *buf);
56
57extern const struct Mapping SortMethods[];
58
66static char *get_sort_str(char *buf, size_t buflen, enum EmailSortType method)
67{
68 snprintf(buf, buflen, "%s%s%s", (method & SORT_REVERSE) ? "reverse-" : "",
69 (method & SORT_LAST) ? "last-" : "",
71 return buf;
72}
73
77static void global_config_sort(const struct ExpandoNode *node, void *data,
78 MuttFormatFlags flags, struct Buffer *buf)
79{
80 char tmp[128] = { 0 };
81
82 const enum EmailSortType c_sort = cs_subset_sort(NeoMutt->sub, "sort");
83 const char *s = get_sort_str(tmp, sizeof(tmp), c_sort);
84 buf_strcpy(buf, s);
85}
86
90static void global_config_sort_aux(const struct ExpandoNode *node, void *data,
91 MuttFormatFlags flags, struct Buffer *buf)
92{
93 char tmp[128] = { 0 };
94
95 const enum EmailSortType c_sort_aux = cs_subset_sort(NeoMutt->sub, "sort_aux");
96 const char *s = get_sort_str(tmp, sizeof(tmp), c_sort_aux);
97 buf_strcpy(buf, s);
98}
99
103static void global_config_use_threads(const struct ExpandoNode *node, void *data,
104 MuttFormatFlags flags, struct Buffer *buf)
105{
106 const enum UseThreads c_use_threads = mutt_thread_style();
107 const char *s = get_use_threads_str(c_use_threads);
108 buf_strcpy(buf, s);
109}
110
114static void global_hostname(const struct ExpandoNode *node, void *data,
115 MuttFormatFlags flags, struct Buffer *buf)
116{
117 const char *s = ShortHostname;
118 buf_strcpy(buf, s);
119}
120
124static void global_version(const struct ExpandoNode *node, void *data,
125 MuttFormatFlags flags, struct Buffer *buf)
126{
127 const char *s = mutt_make_version();
128 buf_strcpy(buf, s);
129}
130
134static long index_deleted_count_num(const struct ExpandoNode *node, void *data,
135 MuttFormatFlags flags)
136{
137 const struct MenuStatusLineData *msld = data;
138 const struct IndexSharedData *shared = msld->shared;
139 const struct Mailbox *m = shared->mailbox;
140
141 return m ? m->msg_deleted : 0;
142}
143
147static void index_description(const struct ExpandoNode *node, void *data,
148 MuttFormatFlags flags, struct Buffer *buf)
149{
150 const struct MenuStatusLineData *msld = data;
151 const struct IndexSharedData *shared = msld->shared;
152 const struct Mailbox *m = shared->mailbox;
153
154 // If there's a descriptive name, use it. Otherwise, use %f
155 if (m && m->name)
156 {
157 const char *s = m->name;
158 buf_strcpy(buf, s);
159 return;
160 }
161
162 index_mailbox_path(node, data, flags, buf);
163}
164
168static long index_flagged_count_num(const struct ExpandoNode *node, void *data,
169 MuttFormatFlags flags)
170{
171 const struct MenuStatusLineData *msld = data;
172 const struct IndexSharedData *shared = msld->shared;
173 const struct Mailbox *m = shared->mailbox;
174
175 return m ? m->msg_flagged : 0;
176}
177
181static long index_limit_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
182{
183 const struct MenuStatusLineData *msld = data;
184 const struct IndexSharedData *shared = msld->shared;
185 const struct Mailbox *m = shared->mailbox;
186
187 return m ? m->vcount : 0;
188}
189
193static void index_limit_pattern(const struct ExpandoNode *node, void *data,
194 MuttFormatFlags flags, struct Buffer *buf)
195{
196 const struct MenuStatusLineData *msld = data;
197 const struct IndexSharedData *shared = msld->shared;
198 const struct MailboxView *mailbox_view = shared->mailbox_view;
199
200 const char *s = mview_has_limit(mailbox_view) ? mailbox_view->pattern : "";
201 buf_strcpy(buf, s);
202}
203
207static void index_limit_size(const struct ExpandoNode *node, void *data,
208 MuttFormatFlags flags, struct Buffer *buf)
209{
210 const struct MenuStatusLineData *msld = data;
211 const struct IndexSharedData *shared = msld->shared;
212 const struct MailboxView *mailbox_view = shared->mailbox_view;
213
214 const off_t num = mailbox_view ? mailbox_view->vsize : 0;
215 mutt_str_pretty_size(buf, num);
216}
217
221static long index_limit_size_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
222{
223 const struct MenuStatusLineData *msld = data;
224 const struct IndexSharedData *shared = msld->shared;
225 const struct MailboxView *mailbox_view = shared->mailbox_view;
226 if (!mailbox_view)
227 return 0;
228
229 return mailbox_view->vsize;
230}
231
235static void index_mailbox_path(const struct ExpandoNode *node, void *data,
236 MuttFormatFlags flags, struct Buffer *buf)
237{
238 const struct MenuStatusLineData *msld = data;
239 const struct IndexSharedData *shared = msld->shared;
240 const struct Mailbox *m = shared->mailbox;
241
242 char tmp[128] = { 0 };
243
244 if (m && m->compress_info && (m->realpath[0] != '\0'))
245 {
246 mutt_str_copy(tmp, m->realpath, sizeof(tmp));
247 mutt_pretty_mailbox(tmp, sizeof(tmp));
248 }
249 else if (m && (m->type == MUTT_NOTMUCH) && m->name)
250 {
251 mutt_str_copy(tmp, m->name, sizeof(tmp));
252 }
253 else if (m && !buf_is_empty(&m->pathbuf))
254 {
255 mutt_str_copy(tmp, mailbox_path(m), sizeof(tmp));
256 mutt_pretty_mailbox(tmp, sizeof(tmp));
257 }
258 else
259 {
260 mutt_str_copy(tmp, _("(no mailbox)"), sizeof(tmp));
261 }
262
263 buf_strcpy(buf, tmp);
264}
265
269static void index_mailbox_size(const struct ExpandoNode *node, void *data,
270 MuttFormatFlags flags, struct Buffer *buf)
271{
272 const struct MenuStatusLineData *msld = data;
273 const struct IndexSharedData *shared = msld->shared;
274 const struct Mailbox *m = shared->mailbox;
275
276 const off_t num = m ? m->size : 0;
277 mutt_str_pretty_size(buf, num);
278}
279
283static long index_mailbox_size_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
284{
285 const struct MenuStatusLineData *msld = data;
286 const struct IndexSharedData *shared = msld->shared;
287 const struct Mailbox *m = shared->mailbox;
288 if (!m)
289 return 0;
290
291 return m->size;
292}
293
297static long index_message_count_num(const struct ExpandoNode *node, void *data,
298 MuttFormatFlags flags)
299{
300 const struct MenuStatusLineData *msld = data;
301 const struct IndexSharedData *shared = msld->shared;
302 const struct Mailbox *m = shared->mailbox;
303
304 return m ? m->msg_count : 0;
305}
306
310static long index_new_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
311{
312 const struct MenuStatusLineData *msld = data;
313 const struct IndexSharedData *shared = msld->shared;
314 const struct Mailbox *m = shared->mailbox;
315
316 return m ? m->msg_new : 0;
317}
318
322static long index_old_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
323{
324 const struct MenuStatusLineData *msld = data;
325 const struct IndexSharedData *shared = msld->shared;
326 const struct Mailbox *m = shared->mailbox;
327
328 return m ? (m->msg_unread - m->msg_new) : 0;
329}
330
334static long index_postponed_count_num(const struct ExpandoNode *node,
335 void *data, MuttFormatFlags flags)
336{
337 const struct MenuStatusLineData *msld = data;
338 const struct IndexSharedData *shared = msld->shared;
339 struct Mailbox *m = shared->mailbox;
340
341 return mutt_num_postponed(m, false);
342}
343
347static void index_readonly(const struct ExpandoNode *node, void *data,
348 MuttFormatFlags flags, struct Buffer *buf)
349{
350 const struct MbTable *c_status_chars = cs_subset_mbtable(NeoMutt->sub, "status_chars");
351 if (!c_status_chars || !c_status_chars->len)
352 return;
353
354 const struct MenuStatusLineData *msld = data;
355 const struct IndexSharedData *shared = msld->shared;
356 const struct Mailbox *m = shared->mailbox;
357
358 int i = STATUS_CHAR_UNCHANGED;
359
360 if (m)
361 {
362 if (shared->attach_msg)
364 else if (m->readonly || m->dontwrite)
366 else if (m->changed || ((m->type != MUTT_IMAP) && m->msg_deleted)) /* deleted doesn't necessarily mean changed in IMAP */
368 else
370 }
371
372 if (i >= c_status_chars->len)
373 buf_addstr(buf, c_status_chars->chars[STATUS_CHAR_UNCHANGED]);
374 else
375 buf_addstr(buf, c_status_chars->chars[i]);
376}
377
381static long index_read_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
382{
383 const struct MenuStatusLineData *msld = data;
384 const struct IndexSharedData *shared = msld->shared;
385 const struct Mailbox *m = shared->mailbox;
386
387 return m ? (m->msg_count - m->msg_unread) : 0;
388}
389
393static long index_tagged_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
394{
395 const struct MenuStatusLineData *msld = data;
396 const struct IndexSharedData *shared = msld->shared;
397 const struct Mailbox *m = shared->mailbox;
398
399 return m ? m->msg_tagged : 0;
400}
401
405static long index_unread_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
406{
407 const struct MenuStatusLineData *msld = data;
408 const struct IndexSharedData *shared = msld->shared;
409 const struct Mailbox *m = shared->mailbox;
410
411 return m ? m->msg_unread : 0;
412}
413
417static long index_unread_mailboxes_num(const struct ExpandoNode *node,
418 void *data, MuttFormatFlags flags)
419{
420 const struct MenuStatusLineData *msld = data;
421 const struct IndexSharedData *shared = msld->shared;
422 struct Mailbox *m = shared->mailbox;
423
425}
426
430static void menu_percentage(const struct ExpandoNode *node, void *data,
431 MuttFormatFlags flags, struct Buffer *buf)
432{
433 const struct MenuStatusLineData *msld = data;
434 const struct Menu *menu = msld->menu;
435 if (!menu)
436 return;
437
438 char tmp[128] = { 0 };
439
440 char *cp = NULL;
441 if (menu->top + menu->page_len >= menu->max)
442 {
443 cp = menu->top ?
444 /* L10N: Status bar message: the end of the list emails is visible in the index */
445 _("end") :
446 /* L10N: Status bar message: all the emails are visible in the index */
447 _("all");
448 }
449 else
450 {
451 int count = (100 * (menu->top + menu->page_len)) / menu->max;
452 /* L10N: Status bar, percentage of way through index.
453 `%d` is the number, `%%` is the percent symbol.
454 They may be reordered, or space inserted, if you wish. */
455 snprintf(tmp, sizeof(tmp), _("%d%%"), count);
456 cp = tmp;
457 }
458
459 buf_strcpy(buf, cp);
460}
461
465static long menu_percentage_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
466{
467 const struct MenuStatusLineData *msld = data;
468 const struct Menu *menu = msld->menu;
469 if (!menu)
470 return 0;
471
472 if (menu->top + menu->page_len >= menu->max)
473 return 100;
474
475 return (100 * (menu->top + menu->page_len)) / menu->max;
476}
477
484 // clang-format off
508 { -1, -1, NULL, NULL },
509 // clang-format on
510};
bool buf_is_empty(const struct Buffer *buf)
Is the Buffer empty?
Definition: buffer.c:291
size_t buf_addstr(struct Buffer *buf, const char *s)
Add a string to a Buffer.
Definition: buffer.c:226
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
Definition: buffer.c:395
void mutt_pretty_mailbox(char *buf, size_t buflen)
Shorten a mailbox path using '~' or '='.
Definition: muttlib.c:440
struct MbTable * cs_subset_mbtable(const struct ConfigSubset *sub, const char *name)
Get a Multibyte table config item by name.
Definition: helpers.c:119
short cs_subset_sort(const struct ConfigSubset *sub, const char *name)
Get a sort config item by name.
Definition: helpers.c:266
Convenience wrapper for the config headers.
#define SORT_MASK
Mask for the sort id.
Definition: sort.h:38
#define SORT_LAST
Sort thread by last-X, e.g. received date.
Definition: sort.h:40
#define SORT_REVERSE
Reverse the order of the sort.
Definition: sort.h:39
Convenience wrapper for the core headers.
static const char * mailbox_path(const struct Mailbox *m)
Get the Mailbox's path string.
Definition: mailbox.h:223
@ MUTT_NOTMUCH
'Notmuch' (virtual) Mailbox type
Definition: mailbox.h:51
@ MUTT_IMAP
'IMAP' Mailbox type
Definition: mailbox.h:50
@ ED_MENU
Menu ED_MEN_ ExpandoDataMenu.
Definition: domain.h:48
@ ED_GLOBAL
Global ED_GLO_ ExpandoDataGlobal.
Definition: domain.h:44
@ ED_INDEX
Index ED_IND_ ExpandoDataIndex.
Definition: domain.h:46
Structs that make up an email.
EmailSortType
Methods for sorting Emails.
Definition: sort.h:53
Parse Expando string.
const struct ExpandoRenderCallback StatusRenderCallbacks[]
Callbacks for Status Expandos.
const struct Mapping SortMethods[]
Sort methods for '$sort' for the index.
Definition: mutt_config.c:88
static char * get_sort_str(char *buf, size_t buflen, enum EmailSortType method)
Get the sort method as a string.
static void global_hostname(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Local hostname - Implements get_string_t -.
static void global_version(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Version string - Implements get_string_t -.
GUI display a user-configurable status line.
@ STATUS_CHAR_UNCHANGED
Mailbox is unchanged.
@ STATUS_CHAR_READ_ONLY
Mailbox is read-only.
@ STATUS_CHAR_NEED_RESYNC
Mailbox has been changed and needs to be resynchronized.
@ STATUS_CHAR_ATTACH
Mailbox opened in attach-message mode.
char * ShortHostname
Short version of the hostname.
Definition: globals.c:37
static long index_deleted_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of deleted messages - Implements get_number_t -.
static long index_tagged_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of tagged messages - Implements get_number_t -.
static long index_limit_size_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Size of the messages - Implements get_number_t -.
static long index_old_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of old messages - Implements get_number_t -.
static long index_limit_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of messages - Implements get_number_t -.
static long index_new_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of new messages - Implements get_number_t -.
static long index_mailbox_size_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Size of the current mailbox - Implements get_number_t -.
static long index_postponed_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of postponed messages - Implements get_number_t -.
static long index_unread_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of unread messages - Implements get_number_t -.
static long index_unread_mailboxes_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of mailboxes with new mail - Implements get_number_t -.
static long index_flagged_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of flagged messages - Implements get_number_t -.
static long menu_percentage_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Percentage through index - Implements get_number_t -.
static long index_message_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of messages in the mailbox - Implements get_number_t -.
static long index_read_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Status: Number of read messages - Implements get_number_t -.
static void global_config_sort(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Sorting mode - Implements get_string_t -.
static void global_config_sort_aux(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Aux sorting method - Implements get_string_t -.
static void index_limit_size(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Size of the messages - Implements get_string_t -.
static void index_mailbox_path(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: pathname of the mailbox - Implements get_string_t -.
static void menu_percentage(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Percentage through index - Implements get_string_t -.
static void index_description(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Description of the mailbox - Implements get_string_t -.
static void index_readonly(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Modified/read-only flag - Implements get_string_t -.
static void index_mailbox_size(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Size of the current mailbox - Implements get_string_t -.
static void index_limit_pattern(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Active limit pattern - Implements get_string_t -.
static void global_config_use_threads(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Status: Current threading mode - Implements get_string_t -.
Data shared between Index, Pager and Sidebar.
@ ED_IND_LIMIT_COUNT
Mailbox.vcount.
Definition: shared_data.h:59
@ ED_IND_MAILBOX_PATH
Mailbox.pathbuf, Mailbox.name.
Definition: shared_data.h:62
@ ED_IND_DELETED_COUNT
Mailbox.msg_deleted.
Definition: shared_data.h:56
@ ED_IND_NEW_COUNT
Mailbox.msg_new.
Definition: shared_data.h:65
@ ED_IND_MAILBOX_SIZE
Mailbox.size.
Definition: shared_data.h:63
@ ED_IND_LIMIT_PATTERN
MailboxView.pattern.
Definition: shared_data.h:60
@ ED_IND_READ_COUNT
Mailbox.msg_count, Mailbox.msg_unread.
Definition: shared_data.h:69
@ ED_IND_POSTPONED_COUNT
mutt_num_postponed()
Definition: shared_data.h:67
@ ED_IND_FLAGGED_COUNT
Mailbox.msg_flagged.
Definition: shared_data.h:58
@ ED_IND_MESSAGE_COUNT
Mailbox.msg_count.
Definition: shared_data.h:64
@ ED_IND_OLD_COUNT
Mailbox.msg_unread, Mailbox.msg_new.
Definition: shared_data.h:66
@ ED_IND_READONLY
Mailbox.readonly, Mailbox.dontwrite.
Definition: shared_data.h:68
@ ED_IND_UNREAD_COUNT
Mailbox.msg_unread.
Definition: shared_data.h:71
@ ED_IND_TAGGED_COUNT
Mailbox.msg_tagged.
Definition: shared_data.h:70
@ ED_IND_LIMIT_SIZE
MailboxView.vsize.
Definition: shared_data.h:61
@ ED_IND_DESCRIPTION
Mailbox.name.
Definition: shared_data.h:57
@ ED_IND_UNREAD_MAILBOXES
Mailbox, mutt_mailbox_check()
Definition: shared_data.h:72
const char * mutt_map_get_name(int val, const struct Mapping *map)
Lookup a string for a constant.
Definition: mapping.c:42
GUI present the user with a selectable list.
@ ED_MEN_PERCENTAGE
Menu.top, ...
Definition: lib.h:68
Convenience wrapper for the library headers.
#define _(a)
Definition: message.h:28
size_t mutt_str_copy(char *dest, const char *src, size_t dsize)
Copy a string into a buffer (guaranteeing NUL-termination)
Definition: string.c:582
int mutt_mailbox_check(struct Mailbox *m_cur, CheckStatsFlags flags)
Check all all Mailboxes for new mail.
Definition: mutt_mailbox.c:169
Mailbox helper functions.
const char * get_use_threads_str(enum UseThreads value)
Convert UseThreads enum to string.
Definition: mutt_thread.c:99
enum UseThreads mutt_thread_style(void)
Which threading style is active?
Definition: mutt_thread.c:81
Create/manipulate threading in emails.
UseThreads
Which threading style is active, $use_threads.
Definition: mutt_thread.h:96
int mutt_str_pretty_size(struct Buffer *buf, size_t num)
Display an abbreviated size, like 3.4K.
Definition: muttlib.c:1003
const char * mutt_make_version(void)
Generate the NeoMutt version string.
Definition: muttlib.c:857
Some miscellaneous functions.
bool mview_has_limit(const struct MailboxView *mv)
Is a limit active?
Definition: mview.c:438
View of a Mailbox.
#define MUTT_MAILBOX_CHECK_NO_FLAGS
No flags are set.
Definition: mxapi.h:50
Postponed Emails.
int mutt_num_postponed(struct Mailbox *m, bool force)
Return the number of postponed messages.
Definition: postpone.c:70
uint8_t MuttFormatFlags
Flags for expando_render(), e.g. MUTT_FORMAT_FORCESUBJ.
Definition: render.h:32
String manipulation buffer.
Definition: buffer.h:36
Basic Expando Node.
Definition: node.h:67
Data shared between Index, Pager and Sidebar.
Definition: shared_data.h:37
struct Mailbox * mailbox
Current Mailbox.
Definition: shared_data.h:41
bool attach_msg
Are we in "attach message" mode?
Definition: shared_data.h:46
struct MailboxView * mailbox_view
Current Mailbox view.
Definition: shared_data.h:40
View of a Mailbox.
Definition: mview.h:40
off_t vsize
Size (in bytes) of the messages shown.
Definition: mview.h:41
char * pattern
Limit pattern string.
Definition: mview.h:42
A mailbox.
Definition: mailbox.h:79
int vcount
The number of virtual messages.
Definition: mailbox.h:99
bool changed
Mailbox has been modified.
Definition: mailbox.h:110
char * realpath
Used for duplicate detection, context comparison, and the sidebar.
Definition: mailbox.h:81
int msg_new
Number of new messages.
Definition: mailbox.h:92
int msg_count
Total number of messages.
Definition: mailbox.h:88
enum MailboxType type
Mailbox type.
Definition: mailbox.h:102
char * name
A short name for the Mailbox.
Definition: mailbox.h:82
struct Buffer pathbuf
Path of the Mailbox.
Definition: mailbox.h:80
int msg_deleted
Number of deleted messages.
Definition: mailbox.h:93
bool dontwrite
Don't write the mailbox on close.
Definition: mailbox.h:111
off_t size
Size of the Mailbox.
Definition: mailbox.h:84
int msg_flagged
Number of flagged messages.
Definition: mailbox.h:90
void * compress_info
Compressed mbox module private data.
Definition: mailbox.h:121
bool readonly
Don't allow changes to the mailbox.
Definition: mailbox.h:116
int msg_tagged
How many messages are tagged?
Definition: mailbox.h:94
int msg_unread
Number of unread messages.
Definition: mailbox.h:89
Mapping between user-readable string and a constant.
Definition: mapping.h:33
Multibyte character table.
Definition: mbtable.h:36
int len
Number of characters.
Definition: mbtable.h:38
char ** chars
The array of multibyte character strings.
Definition: mbtable.h:39
Data for creating a Menu line.
struct IndexSharedData * shared
Data shared between Index, Pager and Sidebar.
struct Menu * menu
Current Menu.
Definition: lib.h:79
int top
Entry that is the top of the current page.
Definition: lib.h:90
int max
Number of entries in the menu.
Definition: lib.h:81
int page_len
Number of entries per screen.
Definition: lib.h:84
Container for Accounts, Notifications.
Definition: neomutt.h:43
struct ConfigSubset * sub
Inherited config items.
Definition: neomutt.h:47
@ ED_GLO_CONFIG_USE_THREADS
Value of $use_threads.
Definition: uid.h:36
@ ED_GLO_CONFIG_SORT
Value of $sort.
Definition: uid.h:34
@ ED_GLO_VERSION
NeoMutt version.
Definition: uid.h:42
@ ED_GLO_CONFIG_SORT_AUX
Value of $sort_aux.
Definition: uid.h:35
@ ED_GLO_HOSTNAME
Local hostname.
Definition: uid.h:37