NeoMutt  2018-07-16 +2481-68dcde
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 <regex.h>
30 #include <stdbool.h>
31 #include <stdio.h>
32 #include "mutt.h"
33 #include "keymap.h"
34 #include "ncrypt/ncrypt.h"
35 
36 struct Context;
37 struct Email;
38 struct EmailList;
39 struct EnterState;
40 struct Mailbox;
41 struct NotifyCallback;
42 
46 enum XdgType
47 {
50 };
51 
56 {
59 };
60 
61 int mutt_ev_message(struct Mailbox *m, struct EmailList *el, enum EvMessage action);
62 
63 int mutt_system(const char *cmd);
64 
65 int mutt_set_xdg_path(enum XdgType type, char *buf, size_t bufsize);
66 void mutt_help(enum MenuType menu);
67 void mutt_make_help(char *d, size_t dlen, const char *txt, enum MenuType menu, int op);
68 void mutt_set_flag_update(struct Mailbox *m, struct Email *e, int flag, bool bf, bool upd_mbox);
69 #define mutt_set_flag(m, e, flag, bf) mutt_set_flag_update(m, e, flag, bf, true)
70 void mutt_signal_init(void);
71 void mutt_emails_set_flag(struct Mailbox *m, struct EmailList *el, int flag, bool bf);
72 int mutt_change_flag(struct Mailbox *m, struct EmailList *el, bool bf);
73 
74 int mutt_complete(char *buf, size_t buflen);
75 int mutt_prepare_template(FILE *fp, struct Mailbox *m, struct Email *e_new, struct Email *e, bool resend);
76 int mutt_enter_string(char *buf, size_t buflen, int col, CompletionFlags flags);
77 int mutt_enter_string_full(char *buf, size_t buflen, int col, CompletionFlags flags, bool multiple,
78  char ***files, int *numfiles, struct EnterState *state);
79 int mutt_get_postponed(struct Context *ctx, struct Email *hdr, struct Email **cur, char *fcc, size_t fcclen);
80 SecurityFlags mutt_parse_crypt_hdr(const char *p, bool set_empty_signas, SecurityFlags crypt_app);
81 int mutt_num_postponed(struct Mailbox *m, bool force);
82 int mutt_thread_set_flag(struct Email *e, int flag, bool bf, bool subthread);
83 void mutt_update_num_postponed(void);
84 int mutt_is_quote_line(char *buf, regmatch_t *pmatch);
85 
86 #ifndef HAVE_WCSCASECMP
87 int wcscasecmp(const wchar_t *a, const wchar_t *b);
88 #endif
89 
90 int mutt_reply_observer(struct NotifyCallback *nc);
91 
92 #endif /* MUTT_PROTOS_H */
The "current" mailbox.
Definition: context.h:36
int mutt_complete(char *buf, size_t buflen)
Attempt to complete a partial pathname.
Definition: complete.c:57
Manage keymappings.
int mutt_num_postponed(struct Mailbox *m, bool force)
Return the number of postponed messages.
Definition: postpone.c:85
int mutt_reply_observer(struct NotifyCallback *nc)
Listen for config changes to "reply_regex" - Implements observer_t()
Definition: index.c:3695
The envelope/body of an email.
Definition: email.h:39
Data passed to a notification function.
Definition: observer.h:40
uint16_t CompletionFlags
Flags for mutt_enter_string_full(), e.g. MUTT_ALIAS.
Definition: mutt.h:63
MenuType
Types of GUI selections.
Definition: keymap.h:60
int mutt_is_quote_line(char *buf, regmatch_t *pmatch)
Is a line of message text a quote?
Definition: pager.c:945
void mutt_help(enum MenuType menu)
Display the help menu.
Definition: help.c:439
int mutt_enter_string(char *buf, size_t buflen, int col, CompletionFlags flags)
Ask the user for a string.
Definition: enter.c:146
XDG home dir: ~/.config.
Definition: protos.h:48
int mutt_thread_set_flag(struct Email *e, int flag, bool bf, bool subthread)
Set a flag on an entire thread.
Definition: flags.c:375
int flags
Observer: determine event data.
Definition: observer.h:47
void mutt_make_help(char *d, size_t dlen, const char *txt, enum MenuType menu, int op)
Create one entry for the help bar.
Definition: help.c:92
void mutt_signal_init(void)
Initialise the signal handling.
Definition: mutt_signal.c:127
Many unsorted constants and some structs.
EvMessage
Edit or View a message.
Definition: protos.h:55
int mutt_ev_message(struct Mailbox *m, struct EmailList *el, enum EvMessage action)
Edit or view a message.
Definition: editmsg.c:262
Keep our place when entering a string.
Definition: enter_state.h:31
View the message.
Definition: protos.h:57
Edit the message.
Definition: protos.h:58
int mutt_set_xdg_path(enum XdgType type, char *buf, size_t bufsize)
Find an XDG path or its fallback.
Definition: muttlib.c:1565
A mailbox.
Definition: mailbox.h:92
XdgType
XDG variable types.
Definition: protos.h:46
int mutt_get_postponed(struct Context *ctx, struct Email *hdr, struct Email **cur, char *fcc, size_t fcclen)
Recall a postponed message.
Definition: postpone.c:290
int wcscasecmp(const wchar_t *a, const wchar_t *b)
Compare two wide-character strings, ignoring case.
Definition: wcscasecmp.c:41
int mutt_change_flag(struct Mailbox *m, struct EmailList *el, bool bf)
Change the flag on a Message.
Definition: flags.c:433
API for encryption/signing of emails.
void mutt_update_num_postponed(void)
Force the update of the number of postponed messages.
Definition: postpone.c:195
int mutt_enter_string_full(char *buf, size_t buflen, int col, CompletionFlags flags, bool multiple, char ***files, int *numfiles, struct EnterState *state)
Ask the user for a string.
Definition: enter.c:178
uint16_t SecurityFlags
Flags, e.g. SEC_ENCRYPT.
Definition: ncrypt.h:120
void mutt_set_flag_update(struct Mailbox *m, struct Email *e, int flag, bool bf, bool upd_mbox)
Set a flag on an email.
Definition: flags.c:55
SecurityFlags mutt_parse_crypt_hdr(const char *p, bool set_empty_signas, SecurityFlags crypt_app)
Parse a crypto header string.
Definition: postpone.c:449
XDG system dir: /etc/xdg.
Definition: protos.h:49
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:596
int mutt_system(const char *cmd)
Run an external command.
Definition: system.c:51
void mutt_emails_set_flag(struct Mailbox *m, struct EmailList *el, int flag, bool bf)
Set flag on messages.
Definition: flags.c:354