NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
protos.h
Go to the documentation of this file.
1 
24 #ifndef MUTT_PROTOS_H
25 #define MUTT_PROTOS_H
26 
27 #include "config.h"
28 #include <stddef.h>
29 #include <stdbool.h>
30 #include <stdio.h>
31 #include "mutt/lib.h"
32 #include "mutt.h"
33 #include "menu/lib.h"
34 #include "ncrypt/lib.h"
35 
36 struct Email;
37 struct EmailList;
38 struct EnterState;
39 struct Mailbox;
40 
44 enum XdgType
45 {
48 };
49 
54 {
57 };
58 
59 int mutt_ev_message(struct Mailbox *m, struct EmailList *el, enum EvMessage action);
60 
61 int mutt_system(const char *cmd);
62 
63 int mutt_set_xdg_path(enum XdgType type, struct Buffer *buf);
64 void mutt_help(enum MenuType menu);
65 void mutt_set_flag_update(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox);
66 #define mutt_set_flag(m, e, flag, bf) mutt_set_flag_update(m, e, flag, bf, true)
67 void mutt_signal_init(void);
68 void mutt_emails_set_flag(struct Mailbox *m, struct EmailList *el, enum MessageType flag, bool bf);
69 int mutt_change_flag(struct Mailbox *m, struct EmailList *el, bool bf);
70 
71 int mutt_complete(char *buf, size_t buflen);
72 int mutt_prepare_template(FILE *fp, struct Mailbox *m, struct Email *e_new, struct Email *e, bool resend);
73 int mutt_enter_string_full(char *buf, size_t buflen, int col, CompletionFlags flags,
74  bool multiple, struct Mailbox *m, char ***files,
75  int *numfiles, struct EnterState *state);
76 int mutt_get_postponed(struct Mailbox *m_cur, struct Email *hdr, struct Email **cur, struct Buffer *fcc);
77 SecurityFlags mutt_parse_crypt_hdr(const char *p, bool set_empty_signas, SecurityFlags crypt_app);
78 int mutt_num_postponed(struct Mailbox *m, bool force);
79 int mutt_thread_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool subthread);
80 void mutt_update_num_postponed(void);
81 int mutt_is_quote_line(char *buf, regmatch_t *pmatch);
82 
83 #ifndef HAVE_WCSCASECMP
84 int wcscasecmp(const wchar_t *a, const wchar_t *b);
85 #endif
86 
87 int mutt_reply_observer(struct NotifyCallback *nc);
88 
89 #endif /* MUTT_PROTOS_H */
int mutt_complete(char *buf, size_t buflen)
Attempt to complete a partial pathname.
Definition: complete.c:57
enum MailboxType type
Mailbox type.
Definition: mailbox.h:105
void mutt_set_flag_update(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox)
Set a flag on an email.
Definition: flags.c:51
MenuType
Types of GUI selections.
Definition: type.h:35
int mutt_num_postponed(struct Mailbox *m, bool force)
Return the number of postponed messages.
Definition: postpone.c:127
int mutt_reply_observer(struct NotifyCallback *nc)
The envelope/body of an email.
Definition: email.h:37
Data passed to a notification function.
Definition: observer.h:39
uint16_t CompletionFlags
Flags for mutt_enter_string_full(), e.g. MUTT_ALIAS.
Definition: mutt.h:51
int mutt_is_quote_line(char *buf, regmatch_t *pmatch)
Is a line of message text a quote?
Definition: dlg_pager.c:968
void mutt_help(enum MenuType menu)
Display the help menu.
Definition: help.c:389
String manipulation buffer.
Definition: buffer.h:33
uint16_t SecurityFlags
Flags, e.g. SEC_ENCRYPT.
Definition: lib.h:71
XDG home dir: ~/.config.
Definition: protos.h:46
void mutt_signal_init(void)
Initialise the signal handling.
Definition: mutt_signal.c:140
MessageType
To set flags or match patterns.
Definition: mutt.h:85
Many unsorted constants and some structs.
EvMessage
Edit or View a message.
Definition: protos.h:53
int mutt_ev_message(struct Mailbox *m, struct EmailList *el, enum EvMessage action)
Edit or view a message.
Definition: editmsg.c:276
int mutt_enter_string_full(char *buf, size_t buflen, int col, CompletionFlags flags, bool multiple, struct Mailbox *m, char ***files, int *numfiles, struct EnterState *state)
Ask the user for a string.
Definition: enter.c:150
Keep our place when entering a string.
Definition: enter_state.h:32
void mutt_emails_set_flag(struct Mailbox *m, struct EmailList *el, enum MessageType flag, bool bf)
Set flag on messages.
Definition: flags.c:352
View the message.
Definition: protos.h:55
Edit the message.
Definition: protos.h:56
A mailbox.
Definition: mailbox.h:81
XdgType
XDG variable types.
Definition: protos.h:44
int mutt_get_postponed(struct Mailbox *m_cur, struct Email *hdr, struct Email **cur, struct Buffer *fcc)
Recall a postponed message.
Definition: postpone.c:424
int wcscasecmp(const wchar_t *a, const wchar_t *b)
Compare two wide-character strings, ignoring case.
Definition: wcscasecmp.c:41
API for encryption/signing of emails.
int mutt_change_flag(struct Mailbox *m, struct EmailList *el, bool bf)
Change the flag on a Message.
Definition: flags.c:434
void mutt_update_num_postponed(void)
Force the update of the number of postponed messages.
Definition: postpone.c:240
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:375
uint8_t flags
e.g. MB_NORMAL
Definition: mailbox.h:134
int mutt_set_xdg_path(enum XdgType type, struct Buffer *buf)
Find an XDG path or its fallback.
Definition: muttlib.c:1516
SecurityFlags mutt_parse_crypt_hdr(const char *p, bool set_empty_signas, SecurityFlags crypt_app)
Parse a crypto header string.
Definition: postpone.c:580
Convenience wrapper for the library headers.
XDG system dir: /etc/xdg.
Definition: protos.h:47
int mutt_prepare_template(FILE *fp, struct Mailbox *m, struct Email *e_new, struct Email *e, bool resend)
Prepare a message template.
Definition: postpone.c:736
int mutt_system(const char *cmd)
Run an external command.
Definition: system.c:51