NeoMutt  2020-08-07-1-gab41a1
Teaching an old dog new tricks
DOXYGEN
commands.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_COMMANDS_H
24 #define MUTT_COMMANDS_H
25 
26 #include <stdbool.h>
27 #include <stdio.h>
28 #include "mutt_menu.h"
29 
30 struct Body;
31 struct Email;
32 struct EmailList;
33 struct Envelope;
34 struct Mailbox;
35 struct MuttWindow;
36 
37 /* These Config Variables are only used in commands.c */
38 extern unsigned char C_CryptVerifySig; /* verify PGP signatures */
39 extern char * C_DisplayFilter;
40 extern bool C_PipeDecode;
41 extern char * C_PipeSep;
42 extern bool C_PipeSplit;
43 extern bool C_PrintDecode;
44 extern bool C_PrintSplit;
45 extern bool C_PromptAfter;
46 
47 void ci_bounce_message(struct Mailbox *m, struct EmailList *el);
48 void mutt_check_stats(void);
49 bool mutt_check_traditional_pgp(struct EmailList *el, MuttRedrawFlags *redraw);
50 void mutt_commands_cleanup(void);
51 void mutt_display_address(struct Envelope *env);
52 int mutt_display_message(struct MuttWindow *win_index, struct MuttWindow *win_ibar, struct MuttWindow *win_pager, struct MuttWindow *win_pbar, struct Mailbox *m, struct Email *e);
53 bool mutt_edit_content_type(struct Email *e, struct Body *b, FILE *fp);
54 void mutt_enter_command(void);
55 void mutt_pipe_message(struct Mailbox *m, struct EmailList *el);
56 void mutt_print_message(struct Mailbox *m, struct EmailList *el);
57 int mutt_save_message_ctx(struct Email *e, bool delete_original, bool decode, bool decrypt, struct Mailbox *m);
58 int mutt_save_message(struct Mailbox *m, struct EmailList *el, bool delete_original, bool decode, bool decrypt);
59 int mutt_select_sort(bool reverse);
60 void mutt_shell_escape(void);
61 
62 #endif /* MUTT_COMMANDS_H */
unsigned char C_CryptVerifySig
Config: Verify PGP or SMIME signatures.
Definition: config.c:108
bool C_PipeSplit
Config: Run the pipe command on each message separately.
Definition: commands.c:88
The envelope/body of an email.
Definition: email.h:37
void mutt_pipe_message(struct Mailbox *m, struct EmailList *el)
Pipe a message.
Definition: commands.c:706
int mutt_save_message_ctx(struct Email *e, bool delete_original, bool decode, bool decrypt, struct Mailbox *m)
Save a message to a given mailbox.
Definition: commands.c:998
int mutt_save_message(struct Mailbox *m, struct EmailList *el, bool delete_original, bool decode, bool decrypt)
Save an email.
Definition: commands.c:1035
bool C_PipeDecode
Config: Decode the message when piping it.
Definition: commands.c:86
int mutt_select_sort(bool reverse)
Ask the user for a sort method.
Definition: commands.c:770
void mutt_check_stats(void)
Forcibly update mailbox stats.
Definition: commands.c:1428
A division of the screen.
Definition: mutt_window.h:115
bool C_PrintSplit
Config: Print multiple messages separately.
Definition: commands.c:90
char * C_PipeSep
Config: Separator to add between multiple piped messages.
Definition: commands.c:87
void mutt_display_address(struct Envelope *env)
Display the address of a message.
Definition: commands.c:918
bool mutt_check_traditional_pgp(struct EmailList *el, MuttRedrawFlags *redraw)
Check if a message has inline PGP content.
Definition: commands.c:1412
int mutt_display_message(struct MuttWindow *win_index, struct MuttWindow *win_ibar, struct MuttWindow *win_pager, struct MuttWindow *win_pbar, struct Mailbox *m, struct Email *e)
Display a message in the pager.
Definition: commands.c:205
bool C_PromptAfter
Config: Pause after running an external pager.
Definition: commands.c:91
The body of an email.
Definition: body.h:34
void mutt_shell_escape(void)
invoke a command in a subshell
Definition: commands.c:844
void mutt_commands_cleanup(void)
Clean up commands globals.
Definition: commands.c:101
void mutt_enter_command(void)
enter a neomutt command
Definition: commands.c:872
void mutt_print_message(struct Mailbox *m, struct EmailList *el)
Print a message.
Definition: commands.c:731
A mailbox.
Definition: mailbox.h:81
GUI present the user with a selectable list.
bool C_PrintDecode
Config: Decode message before printing it.
Definition: commands.c:89
bool mutt_edit_content_type(struct Email *e, struct Body *b, FILE *fp)
Edit the content type of an attachment.
Definition: commands.c:1272
char * C_DisplayFilter
Config: External command to pre-process an email before display.
Definition: commands.c:85
void ci_bounce_message(struct Mailbox *m, struct EmailList *el)
Bounce an email.
Definition: commands.c:415
The header of an Email.
Definition: envelope.h:54
uint16_t MuttRedrawFlags
Flags, e.g. REDRAW_INDEX.
Definition: mutt_menu.h:38