NeoMutt  2025-01-09-156-g99fdbd
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#include "version.h"
54
55static void index_mailbox_path(const struct ExpandoNode *node, void *data,
56 MuttFormatFlags flags, struct Buffer *buf);
57
58extern const struct Mapping SortMethods[];
59
67static char *get_sort_str(char *buf, size_t buflen, enum EmailSortType method)
68{
69 snprintf(buf, buflen, "%s%s%s", (method & SORT_REVERSE) ? "reverse-" : "",
70 (method & SORT_LAST) ? "last-" : "",
72 return buf;
73}
74
78static void global_config_sort(const struct ExpandoNode *node, void *data,
79 MuttFormatFlags flags, struct Buffer *buf)
80{
81 char tmp[128] = { 0 };
82
83 const enum EmailSortType c_sort = cs_subset_sort(NeoMutt->sub, "sort");
84 const char *s = get_sort_str(tmp, sizeof(tmp), c_sort);
85 buf_strcpy(buf, s);
86}
87
91static void global_config_sort_aux(const struct ExpandoNode *node, void *data,
92 MuttFormatFlags flags, struct Buffer *buf)
93{
94 char tmp[128] = { 0 };
95
96 const enum EmailSortType c_sort_aux = cs_subset_sort(NeoMutt->sub, "sort_aux");
97 const char *s = get_sort_str(tmp, sizeof(tmp), c_sort_aux);
98 buf_strcpy(buf, s);
99}
100
104static void global_config_use_threads(const struct ExpandoNode *node, void *data,
105 MuttFormatFlags flags, struct Buffer *buf)
106{
107 const enum UseThreads c_use_threads = mutt_thread_style();
108 const char *s = get_use_threads_str(c_use_threads);
109 buf_strcpy(buf, s);
110}
111
115static void global_hostname(const struct ExpandoNode *node, void *data,
116 MuttFormatFlags flags, struct Buffer *buf)
117{
118 const char *s = ShortHostname;
119 buf_strcpy(buf, s);
120}
121
125static void global_version(const struct ExpandoNode *node, void *data,
126 MuttFormatFlags flags, struct Buffer *buf)
127{
128 const char *s = mutt_make_version();
129 buf_strcpy(buf, s);
130}
131
135static long index_deleted_count_num(const struct ExpandoNode *node, void *data,
136 MuttFormatFlags flags)
137{
138 const struct MenuStatusLineData *msld = data;
139 const struct IndexSharedData *shared = msld->shared;
140 const struct Mailbox *m = shared->mailbox;
141
142 return m ? m->msg_deleted : 0;
143}
144
148static void index_description(const struct ExpandoNode *node, void *data,
149 MuttFormatFlags flags, struct Buffer *buf)
150{
151 const struct MenuStatusLineData *msld = data;
152 const struct IndexSharedData *shared = msld->shared;
153 const struct Mailbox *m = shared->mailbox;
154
155 // If there's a descriptive name, use it. Otherwise, use %f
156 if (m && m->name)
157 {
158 const char *s = m->name;
159 buf_strcpy(buf, s);
160 return;
161 }
162
163 index_mailbox_path(node, data, flags, buf);
164}
165
169static long index_flagged_count_num(const struct ExpandoNode *node, void *data,
170 MuttFormatFlags flags)
171{
172 const struct MenuStatusLineData *msld = data;
173 const struct IndexSharedData *shared = msld->shared;
174 const struct Mailbox *m = shared->mailbox;
175
176 return m ? m->msg_flagged : 0;
177}
178
182static long index_limit_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
183{
184 const struct MenuStatusLineData *msld = data;
185 const struct IndexSharedData *shared = msld->shared;
186 const struct Mailbox *m = shared->mailbox;
187
188 return m ? m->vcount : 0;
189}
190
194static void index_limit_pattern(const struct ExpandoNode *node, void *data,
195 MuttFormatFlags flags, struct Buffer *buf)
196{
197 const struct MenuStatusLineData *msld = data;
198 const struct IndexSharedData *shared = msld->shared;
199 const struct MailboxView *mailbox_view = shared->mailbox_view;
200
201 const char *s = mview_has_limit(mailbox_view) ? mailbox_view->pattern : "";
202 buf_strcpy(buf, s);
203}
204
208static void index_limit_size(const struct ExpandoNode *node, void *data,
209 MuttFormatFlags flags, struct Buffer *buf)
210{
211 const struct MenuStatusLineData *msld = data;
212 const struct IndexSharedData *shared = msld->shared;
213 const struct MailboxView *mailbox_view = shared->mailbox_view;
214
215 const off_t num = mailbox_view ? mailbox_view->vsize : 0;
216 mutt_str_pretty_size(buf, num);
217}
218
222static long index_limit_size_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
223{
224 const struct MenuStatusLineData *msld = data;
225 const struct IndexSharedData *shared = msld->shared;
226 const struct MailboxView *mailbox_view = shared->mailbox_view;
227 if (!mailbox_view)
228 return 0;
229
230 return mailbox_view->vsize;
231}
232
236static void index_mailbox_path(const struct ExpandoNode *node, void *data,
237 MuttFormatFlags flags, struct Buffer *buf)
238{
239 const struct MenuStatusLineData *msld = data;
240 const struct IndexSharedData *shared = msld->shared;
241 const struct Mailbox *m = shared->mailbox;
242
243 char tmp[128] = { 0 };
244
245 if (m && m->compress_info && (m->realpath[0] != '\0'))
246 {
247 mutt_str_copy(tmp, m->realpath, sizeof(tmp));
248 mutt_pretty_mailbox(tmp, sizeof(tmp));
249 }
250 else if (m && (m->type == MUTT_NOTMUCH) && m->name)
251 {
252 mutt_str_copy(tmp, m->name, sizeof(tmp));
253 }
254 else if (m && !buf_is_empty(&m->pathbuf))
255 {
256 mutt_str_copy(tmp, mailbox_path(m), sizeof(tmp));
257 mutt_pretty_mailbox(tmp, sizeof(tmp));
258 }
259 else
260 {
261 mutt_str_copy(tmp, _("(no mailbox)"), sizeof(tmp));
262 }
263
264 buf_strcpy(buf, tmp);
265}
266
270static void index_mailbox_size(const struct ExpandoNode *node, void *data,
271 MuttFormatFlags flags, struct Buffer *buf)
272{
273 const struct MenuStatusLineData *msld = data;
274 const struct IndexSharedData *shared = msld->shared;
275 const struct Mailbox *m = shared->mailbox;
276
277 const off_t num = m ? m->size : 0;
278 mutt_str_pretty_size(buf, num);
279}
280
284static long index_mailbox_size_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
285{
286 const struct MenuStatusLineData *msld = data;
287 const struct IndexSharedData *shared = msld->shared;
288 const struct Mailbox *m = shared->mailbox;
289 if (!m)
290 return 0;
291
292 return m->size;
293}
294
298static long index_message_count_num(const struct ExpandoNode *node, void *data,
299 MuttFormatFlags flags)
300{
301 const struct MenuStatusLineData *msld = data;
302 const struct IndexSharedData *shared = msld->shared;
303 const struct Mailbox *m = shared->mailbox;
304
305 return m ? m->msg_count : 0;
306}
307
311static long index_new_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
312{
313 const struct MenuStatusLineData *msld = data;
314 const struct IndexSharedData *shared = msld->shared;
315 const struct Mailbox *m = shared->mailbox;
316
317 return m ? m->msg_new : 0;
318}
319
323static long index_old_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
324{
325 const struct MenuStatusLineData *msld = data;
326 const struct IndexSharedData *shared = msld->shared;
327 const struct Mailbox *m = shared->mailbox;
328
329 return m ? (m->msg_unread - m->msg_new) : 0;
330}
331
335static long index_postponed_count_num(const struct ExpandoNode *node,
336 void *data, MuttFormatFlags flags)
337{
338 const struct MenuStatusLineData *msld = data;
339 const struct IndexSharedData *shared = msld->shared;
340 struct Mailbox *m = shared->mailbox;
341
342 return mutt_num_postponed(m, false);
343}
344
348static void index_readonly(const struct ExpandoNode *node, void *data,
349 MuttFormatFlags flags, struct Buffer *buf)
350{
351 const struct MbTable *c_status_chars = cs_subset_mbtable(NeoMutt->sub, "status_chars");
352 if (!c_status_chars || !c_status_chars->len)
353 return;
354
355 const struct MenuStatusLineData *msld = data;
356 const struct IndexSharedData *shared = msld->shared;
357 const struct Mailbox *m = shared->mailbox;
358
359 int i = STATUS_CHAR_UNCHANGED;
360
361 if (m)
362 {
363 if (shared->attach_msg)
365 else if (m->readonly || m->dontwrite)
367 else if (m->changed || ((m->type != MUTT_IMAP) && m->msg_deleted)) /* deleted doesn't necessarily mean changed in IMAP */
369 else
371 }
372
373 if (i >= c_status_chars->len)
374 buf_addstr(buf, c_status_chars->chars[STATUS_CHAR_UNCHANGED]);
375 else
376 buf_addstr(buf, c_status_chars->chars[i]);
377}
378
382static long index_read_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
383{
384 const struct MenuStatusLineData *msld = data;
385 const struct IndexSharedData *shared = msld->shared;
386 const struct Mailbox *m = shared->mailbox;
387
388 return m ? (m->msg_count - m->msg_unread) : 0;
389}
390
394static long index_tagged_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
395{
396 const struct MenuStatusLineData *msld = data;
397 const struct IndexSharedData *shared = msld->shared;
398 const struct Mailbox *m = shared->mailbox;
399
400 return m ? m->msg_tagged : 0;
401}
402
406static long index_unread_count_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
407{
408 const struct MenuStatusLineData *msld = data;
409 const struct IndexSharedData *shared = msld->shared;
410 const struct Mailbox *m = shared->mailbox;
411
412 return m ? m->msg_unread : 0;
413}
414
418static long index_unread_mailboxes_num(const struct ExpandoNode *node,
419 void *data, MuttFormatFlags flags)
420{
421 const struct MenuStatusLineData *msld = data;
422 const struct IndexSharedData *shared = msld->shared;
423 struct Mailbox *m = shared->mailbox;
424
426}
427
431static void menu_percentage(const struct ExpandoNode *node, void *data,
432 MuttFormatFlags flags, struct Buffer *buf)
433{
434 const struct MenuStatusLineData *msld = data;
435 const struct Menu *menu = msld->menu;
436 if (!menu)
437 return;
438
439 char tmp[128] = { 0 };
440
441 char *cp = NULL;
442 if (menu->top + menu->page_len >= menu->max)
443 {
444 cp = menu->top ?
445 /* L10N: Status bar message: the end of the list emails is visible in the index */
446 _("end") :
447 /* L10N: Status bar message: all the emails are visible in the index */
448 _("all");
449 }
450 else
451 {
452 int count = (100 * (menu->top + menu->page_len)) / menu->max;
453 /* L10N: Status bar, percentage of way through index.
454 `%d` is the number, `%%` is the percent symbol.
455 They may be reordered, or space inserted, if you wish. */
456 snprintf(tmp, sizeof(tmp), _("%d%%"), count);
457 cp = tmp;
458 }
459
460 buf_strcpy(buf, cp);
461}
462
466static long menu_percentage_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
467{
468 const struct MenuStatusLineData *msld = data;
469 const struct Menu *menu = msld->menu;
470 if (!menu)
471 return 0;
472
473 if (menu->top + menu->page_len >= menu->max)
474 return 100;
475
476 return (100 * (menu->top + menu->page_len)) / menu->max;
477}
478
485 // clang-format off
509 { -1, -1, NULL, NULL },
510 // clang-format on
511};
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:990
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
const char * mutt_make_version(void)
Generate the NeoMutt version string.
Definition: version.c:295
Display version and copyright about NeoMutt.