NeoMutt  2019-12-07-168-gc45f47
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/lib.h"
35 
36 struct Buffer;
37 struct Context;
38 struct Email;
39 struct EmailList;
40 struct EnterState;
41 struct Mailbox;
42 struct NotifyCallback;
43 
47 enum XdgType
48 {
51 };
52 
57 {
60 };
61 
62 int mutt_ev_message(struct Mailbox *m, struct EmailList *el, enum EvMessage action);
63 
64 int mutt_system(const char *cmd);
65 
66 int mutt_set_xdg_path(enum XdgType type, char *buf, size_t bufsize);
67 void mutt_help(enum MenuType menu, int wraplan);
68 void mutt_make_help(char *d, size_t dlen, const char *txt, enum MenuType menu, int op);
69 void mutt_set_flag_update(struct Mailbox *m, struct Email *e, int flag, bool bf, bool upd_mbox);
70 #define mutt_set_flag(m, e, flag, bf) mutt_set_flag_update(m, e, flag, bf, true)
71 void mutt_signal_init(void);
72 void mutt_emails_set_flag(struct Mailbox *m, struct EmailList *el, int flag, bool bf);
73 int mutt_change_flag(struct Mailbox *m, struct EmailList *el, bool bf);
74 
75 int mutt_complete(char *buf, size_t buflen);
76 int mutt_prepare_template(FILE *fp, struct Mailbox *m, struct Email *e_new, struct Email *e, bool resend);
77 int mutt_enter_string(char *buf, size_t buflen, int col, CompletionFlags flags);
78 int mutt_enter_string_full(char *buf, size_t buflen, int col, CompletionFlags flags, bool multiple,
79  char ***files, int *numfiles, struct EnterState *state);
80 int mutt_get_postponed(struct Context *ctx, struct Email *hdr, struct Email **cur, struct Buffer *fcc);
81 SecurityFlags mutt_parse_crypt_hdr(const char *p, bool set_empty_signas, SecurityFlags crypt_app);
82 int mutt_num_postponed(struct Mailbox *m, bool force);
83 int mutt_thread_set_flag(struct Email *e, int flag, bool bf, bool subthread);
84 void mutt_update_num_postponed(void);
85 int mutt_is_quote_line(char *buf, regmatch_t *pmatch);
86 
87 #ifndef HAVE_WCSCASECMP
88 int wcscasecmp(const wchar_t *a, const wchar_t *b);
89 #endif
90 
91 int mutt_reply_observer(struct NotifyCallback *nc);
92 
93 #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:86
int mutt_reply_observer(struct NotifyCallback *nc)
Listen for config changes to "reply_regex" - Implements observer_t()
Definition: index.c:3962
The envelope/body of an email.
Definition: email.h:37
Data passed to a notification function.
Definition: observer.h:40
int mutt_get_postponed(struct Context *ctx, struct Email *hdr, struct Email **cur, struct Buffer *fcc)
Recall a postponed message.
Definition: postpone.c:328
uint16_t CompletionFlags
Flags for mutt_enter_string_full(), e.g. MUTT_ALIAS.
Definition: mutt.h:61
MenuType
Types of GUI selections.
Definition: keymap.h:69
int mutt_is_quote_line(char *buf, regmatch_t *pmatch)
Is a line of message text a quote?
Definition: pager.c:937
String manipulation buffer.
Definition: buffer.h:33
int mutt_enter_string(char *buf, size_t buflen, int col, CompletionFlags flags)
Ask the user for a string.
Definition: enter.c:144
void mutt_help(enum MenuType menu, int wraplan)
Display the help menu.
Definition: help.c:444
uint16_t SecurityFlags
Flags, e.g. SEC_ENCRYPT.
Definition: lib.h:121
XDG home dir: ~/.config.
Definition: protos.h:49
int mutt_thread_set_flag(struct Email *e, int flag, bool bf, bool subthread)
Set a flag on an entire thread.
Definition: flags.c:374
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:93
void mutt_signal_init(void)
Initialise the signal handling.
Definition: mutt_signal.c:131
Many unsorted constants and some structs.
EvMessage
Edit or View a message.
Definition: protos.h:56
int mutt_ev_message(struct Mailbox *m, struct EmailList *el, enum EvMessage action)
Edit or view a message.
Definition: editmsg.c:264
Keep our place when entering a string.
Definition: enter_state.h:32
View the message.
Definition: protos.h:58
Edit the message.
Definition: protos.h:59
int mutt_set_xdg_path(enum XdgType type, char *buf, size_t bufsize)
Find an XDG path or its fallback.
Definition: muttlib.c:1598
A mailbox.
Definition: mailbox.h:80
XdgType
XDG variable types.
Definition: protos.h:47
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:432
void mutt_update_num_postponed(void)
Force the update of the number of postponed messages.
Definition: postpone.c:199
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:176
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:54
SecurityFlags mutt_parse_crypt_hdr(const char *p, bool set_empty_signas, SecurityFlags crypt_app)
Parse a crypto header string.
Definition: postpone.c:497
XDG system dir: /etc/xdg.
Definition: protos.h:50
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:644
int mutt_system(const char *cmd)
Run an external command.
Definition: system.c:52
void mutt_emails_set_flag(struct Mailbox *m, struct EmailList *el, int flag, bool bf)
Set flag on messages.
Definition: flags.c:353