Thanks to visit codestin.com
Credit goes to code.neomutt.org

NeoMutt  2025-12-11-189-gceedb6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
mutt.h
Go to the documentation of this file.
1
24
25#ifndef MUTT_MUTT_H
26#define MUTT_MUTT_H
27
28#include "config.h"
29#include "mutt.h"
30#include "menu/lib.h"
31#include <limits.h>
32#include <stdbool.h>
33
34struct Buffer;
35struct Email;
36struct EmailArray;
37struct Mailbox;
38struct NotifyCallback;
39
40/* On OS X 10.5.x, wide char functions are inlined by default breaking
41 * --without-wc-funcs compilation
42 */
43#ifdef __APPLE_CC__
44#define _DONT_USE_CTYPE_INLINE_
45#endif
46
47/* PATH_MAX is undefined on the hurd */
48#ifndef PATH_MAX
49#define PATH_MAX 4096
50#endif
51
52#ifdef HAVE_FGETS_UNLOCKED
53#define fgets fgets_unlocked
54#endif
55
56#ifdef HAVE_FGETC_UNLOCKED
57#define fgetc fgetc_unlocked
58#endif
59
60extern bool StartupComplete;
61
70
79
108
109int mutt_ev_message(struct Mailbox *m, struct EmailArray *ea, enum EvMessage action);
110
111int mutt_system(const char *cmd);
112
113int mutt_set_xdg_path(enum XdgType type, struct Buffer *buf);
114void mutt_help(enum MenuType menu);
115void mutt_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox);
116void mutt_signal_init(void);
117void mutt_emails_set_flag(struct Mailbox *m, struct EmailArray *ea, enum MessageType flag, bool bf);
118int mw_change_flag(struct Mailbox *m, struct EmailArray *ea, bool bf);
119
120int mutt_thread_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool subthread);
121extern short PostCount;
122
124
125#endif /* MUTT_MUTT_H */
bool StartupComplete
When the config has been read.
Definition address.c:12
int mw_change_flag(struct Mailbox *m, struct EmailArray *ea, bool bf)
Change the flag on a Message -.
Definition flags.c:451
GUI present the user with a selectable list.
Many unsorted constants and some structs.
XdgType
XDG variable types.
Definition mutt.h:66
@ XDG_CONFIG_HOME
XDG home dir: ~/.config.
Definition mutt.h:67
@ XDG_CONFIG_DIRS
XDG system dir: /etc/xdg.
Definition mutt.h:68
void mutt_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox)
Set a flag on an email.
Definition flags.c:54
int mutt_reply_observer(struct NotifyCallback *nc)
EvMessage
Edit or View a message.
Definition mutt.h:75
@ EVM_VIEW
View the message.
Definition mutt.h:76
@ EVM_EDIT
Edit the message.
Definition mutt.h:77
void mutt_emails_set_flag(struct Mailbox *m, struct EmailArray *ea, enum MessageType flag, bool bf)
Set flag on messages.
Definition flags.c:358
short PostCount
Number of postponed (draft) emails.
Definition postpone.c:55
void mutt_signal_init(void)
Initialise the signal handling.
int mutt_system(const char *cmd)
Run an external command.
Definition system.c:51
int mutt_set_xdg_path(enum XdgType type, struct Buffer *buf)
Find an XDG path or its fallback.
Definition muttlib.c:871
int mutt_ev_message(struct Mailbox *m, struct EmailArray *ea, enum EvMessage action)
Edit or view a message.
Definition editmsg.c:282
int mutt_thread_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool subthread)
Set a flag on an entire thread.
Definition flags.c:382
void mutt_help(enum MenuType menu)
Display the Help Page.
Definition help.c:147
MessageType
To set flags or match patterns.
Definition mutt.h:86
@ MUTT_ALL
All messages.
Definition mutt.h:87
@ MUTT_UNDELETE
Messages to be un-deleted.
Definition mutt.h:95
@ MUTT_TRASH
Trashed messages.
Definition mutt.h:104
@ MUTT_LIMIT
Messages in limited view.
Definition mutt.h:101
@ MUTT_UNTAG
Messages to be un-tagged.
Definition mutt.h:100
@ MUTT_SUPERSEDED
Superseded messages.
Definition mutt.h:103
@ MUTT_EXPIRED
Expired messages.
Definition mutt.h:102
@ MUTT_MT_MAX
Definition mutt.h:106
@ MUTT_READ
Messages that have been read.
Definition mutt.h:92
@ MUTT_OLD
Old messages.
Definition mutt.h:90
@ MUTT_PURGE
Messages to be purged (bypass trash)
Definition mutt.h:96
@ MUTT_NONE
No messages.
Definition mutt.h:88
@ MUTT_TAG
Tagged messages.
Definition mutt.h:99
@ MUTT_FLAG
Flagged messages.
Definition mutt.h:98
@ MUTT_DELETED
Deleted messages.
Definition mutt.h:97
@ MUTT_DELETE
Messages to be deleted.
Definition mutt.h:94
@ MUTT_NEW
New messages.
Definition mutt.h:89
@ MUTT_UNREAD
Unread messages.
Definition mutt.h:93
@ MUTT_REPLIED
Messages that have been replied to.
Definition mutt.h:91
String manipulation buffer.
Definition buffer.h:36
The envelope/body of an email.
Definition email.h:39
A mailbox.
Definition mailbox.h:79
Data passed to a notification function.
Definition observer.h:34
MenuType
Types of GUI selections.
Definition type.h:33