NeoMutt  2025-09-05-43-g177ed6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
protos.h
Go to the documentation of this file.
1
24
25#ifndef MUTT_PROTOS_H
26#define MUTT_PROTOS_H
27
28#include "config.h"
29#include <stdbool.h>
30#include "mutt.h"
31#include "menu/lib.h"
32
33struct Buffer;
34struct ConfigSet;
35struct Email;
36struct EmailArray;
37struct Mailbox;
38struct NotifyCallback;
39
48
57
58int mutt_ev_message(struct Mailbox *m, struct EmailArray *ea, enum EvMessage action);
59
60int mutt_system(const char *cmd);
61
62int mutt_set_xdg_path(enum XdgType type, struct Buffer *buf);
63void mutt_help(enum MenuType menu);
64void mutt_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox);
65void mutt_signal_init(void);
66void mutt_emails_set_flag(struct Mailbox *m, struct EmailArray *ea, enum MessageType flag, bool bf);
67int mw_change_flag(struct Mailbox *m, struct EmailArray *ea, bool bf);
68
69int mutt_thread_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool subthread);
70extern short PostCount;
71
72#ifndef HAVE_WCSCASECMP
73int wcscasecmp(const wchar_t *a, const wchar_t *b);
74#endif
75
77void init_config(struct ConfigSet *cs);
78
79#endif /* MUTT_PROTOS_H */
int mw_change_flag(struct Mailbox *m, struct EmailArray *ea, bool bf)
Change the flag on a Message -.
Definition flags.c:454
GUI present the user with a selectable list.
Many unsorted constants and some structs.
MessageType
To set flags or match patterns.
Definition mutt.h:67
short PostCount
Number of postponed (draft) emails.
Definition postpone.c:58
XdgType
XDG variable types.
Definition protos.h:44
@ XDG_CONFIG_HOME
XDG home dir: ~/.config.
Definition protos.h:45
@ XDG_CONFIG_DIRS
XDG system dir: /etc/xdg.
Definition protos.h:46
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:57
int mutt_reply_observer(struct NotifyCallback *nc)
EvMessage
Edit or View a message.
Definition protos.h:53
@ EVM_VIEW
View the message.
Definition protos.h:54
@ EVM_EDIT
Edit the message.
Definition protos.h:55
void init_config(struct ConfigSet *cs)
Initialise the config system.
void mutt_emails_set_flag(struct Mailbox *m, struct EmailArray *ea, enum MessageType flag, bool bf)
Set flag on messages.
Definition flags.c:361
void mutt_signal_init(void)
Initialise the signal handling.
int mutt_system(const char *cmd)
Run an external command.
Definition system.c:52
int mutt_set_xdg_path(enum XdgType type, struct Buffer *buf)
Find an XDG path or its fallback.
Definition muttlib.c:882
int mutt_ev_message(struct Mailbox *m, struct EmailArray *ea, enum EvMessage action)
Edit or view a message.
Definition editmsg.c:284
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:385
void mutt_help(enum MenuType menu)
Display the Help Page.
Definition help.c:149
int wcscasecmp(const wchar_t *a, const wchar_t *b)
Compare two wide-character strings, ignoring case.
Definition wcscasecmp.c:41
String manipulation buffer.
Definition buffer.h:36
Container for lots of config items.
Definition set.h:248
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:36