NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
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 <limits.h>
31
#include <stdbool.h>
32
33
struct
Buffer
;
34
struct
Email
;
35
struct
EmailArray;
36
struct
Mailbox
;
37
struct
MenuDefinition
;
38
struct
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
60
extern
bool
StartupComplete
;
61
65
enum
XdgType
66
{
67
XDG_CONFIG_HOME
,
68
XDG_CONFIG_DIRS
,
69
};
70
74
enum
EvMessage
75
{
76
EVM_VIEW
,
77
EVM_EDIT
,
78
};
79
85
enum
MessageType
86
{
87
MUTT_ALL
= 1,
88
MUTT_NONE
,
89
MUTT_NEW
,
90
MUTT_OLD
,
91
MUTT_REPLIED
,
92
MUTT_READ
,
93
MUTT_UNREAD
,
94
MUTT_DELETE
,
95
MUTT_UNDELETE
,
96
MUTT_PURGE
,
97
MUTT_DELETED
,
98
MUTT_FLAG
,
99
MUTT_TAG
,
100
MUTT_UNTAG
,
101
MUTT_LIMIT
,
102
MUTT_EXPIRED
,
103
MUTT_SUPERSEDED
,
104
MUTT_TRASH
,
105
106
MUTT_MT_MAX
,
107
};
108
109
int
mutt_ev_message
(
struct
Mailbox
*m,
struct
EmailArray *ea,
enum
EvMessage
action);
110
111
int
mutt_system
(
const
char
*cmd);
112
113
int
mutt_set_xdg_path
(
enum
XdgType
type,
struct
Buffer
*buf);
114
void
mutt_help
(
const
struct
MenuDefinition
*md);
115
void
mutt_set_flag
(
struct
Mailbox
*m,
struct
Email
*e,
enum
MessageType
flag,
bool
bf,
bool
upd_mbox);
116
void
mutt_signal_init
(
void
);
117
void
mutt_emails_set_flag
(
struct
Mailbox
*m,
struct
EmailArray *ea,
enum
MessageType
flag,
bool
bf);
118
int
mw_change_flag
(
struct
Mailbox
*m,
struct
EmailArray *ea,
bool
bf);
119
120
int
mutt_thread_set_flag
(
struct
Mailbox
*m,
struct
Email
*e,
enum
MessageType
flag,
bool
bf,
bool
subthread);
121
122
int
mutt_reply_observer
(
struct
NotifyCallback
*nc);
123
124
#endif
/* MUTT_MUTT_H */
StartupComplete
bool StartupComplete
Definition
address.c:11
mw_change_flag
int mw_change_flag(struct Mailbox *m, struct EmailArray *ea, bool bf)
Change the flag on a Message -.
Definition
flags.c:456
mutt.h
Many unsorted constants and some structs.
XdgType
XdgType
XDG variable types.
Definition
mutt.h:66
XDG_CONFIG_HOME
@ XDG_CONFIG_HOME
XDG home dir: ~/.config.
Definition
mutt.h:67
XDG_CONFIG_DIRS
@ XDG_CONFIG_DIRS
XDG system dir: /etc/xdg.
Definition
mutt.h:68
mutt_set_flag
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
mutt_reply_observer
int mutt_reply_observer(struct NotifyCallback *nc)
EvMessage
EvMessage
Edit or View a message.
Definition
mutt.h:75
EVM_VIEW
@ EVM_VIEW
View the message.
Definition
mutt.h:76
EVM_EDIT
@ EVM_EDIT
Edit the message.
Definition
mutt.h:77
mutt_help
void mutt_help(const struct MenuDefinition *md)
Display the Help Page.
Definition
help.c:147
mutt_emails_set_flag
void mutt_emails_set_flag(struct Mailbox *m, struct EmailArray *ea, enum MessageType flag, bool bf)
Set flag on messages.
Definition
flags.c:358
mutt_signal_init
void mutt_signal_init(void)
Initialise the signal handling.
Definition
mutt_signal.c:138
mutt_system
int mutt_system(const char *cmd)
Run an external command.
Definition
system.c:51
mutt_set_xdg_path
int mutt_set_xdg_path(enum XdgType type, struct Buffer *buf)
Find an XDG path or its fallback.
Definition
muttlib.c:836
mutt_ev_message
int mutt_ev_message(struct Mailbox *m, struct EmailArray *ea, enum EvMessage action)
Edit or view a message.
Definition
editmsg.c:282
mutt_thread_set_flag
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
MessageType
MessageType
To set flags or match patterns.
Definition
mutt.h:86
MUTT_ALL
@ MUTT_ALL
All messages.
Definition
mutt.h:87
MUTT_UNDELETE
@ MUTT_UNDELETE
Messages to be un-deleted.
Definition
mutt.h:95
MUTT_TRASH
@ MUTT_TRASH
Trashed messages.
Definition
mutt.h:104
MUTT_LIMIT
@ MUTT_LIMIT
Messages in limited view.
Definition
mutt.h:101
MUTT_UNTAG
@ MUTT_UNTAG
Messages to be un-tagged.
Definition
mutt.h:100
MUTT_SUPERSEDED
@ MUTT_SUPERSEDED
Superseded messages.
Definition
mutt.h:103
MUTT_EXPIRED
@ MUTT_EXPIRED
Expired messages.
Definition
mutt.h:102
MUTT_MT_MAX
@ MUTT_MT_MAX
Definition
mutt.h:106
MUTT_READ
@ MUTT_READ
Messages that have been read.
Definition
mutt.h:92
MUTT_OLD
@ MUTT_OLD
Old messages.
Definition
mutt.h:90
MUTT_PURGE
@ MUTT_PURGE
Messages to be purged (bypass trash).
Definition
mutt.h:96
MUTT_NONE
@ MUTT_NONE
No messages.
Definition
mutt.h:88
MUTT_TAG
@ MUTT_TAG
Tagged messages.
Definition
mutt.h:99
MUTT_FLAG
@ MUTT_FLAG
Flagged messages.
Definition
mutt.h:98
MUTT_DELETED
@ MUTT_DELETED
Deleted messages.
Definition
mutt.h:97
MUTT_DELETE
@ MUTT_DELETE
Messages to be deleted.
Definition
mutt.h:94
MUTT_NEW
@ MUTT_NEW
New messages.
Definition
mutt.h:89
MUTT_UNREAD
@ MUTT_UNREAD
Unread messages.
Definition
mutt.h:93
MUTT_REPLIED
@ MUTT_REPLIED
Messages that have been replied to.
Definition
mutt.h:91
Buffer
String manipulation buffer.
Definition
buffer.h:36
Email
The envelope/body of an email.
Definition
email.h:39
Mailbox
A mailbox.
Definition
mailbox.h:81
MenuDefinition
Functions for a Dialog or Window.
Definition
menudef.h:44
NotifyCallback
Data passed to a notification function.
Definition
observer.h:34