NeoMutt  2021-02-05-89-gabe350
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 char * C_DisplayFilter;
39 extern bool C_PipeDecode;
40 extern char * C_PipeSep;
41 extern bool C_PipeSplit;
42 extern bool C_PrintDecode;
43 extern bool C_PrintSplit;
44 extern bool C_PromptAfter;
45 
50 {
54 };
55 
60 {
61  SAVE_COPY = 0,
63 };
64 
65 void ci_bounce_message(struct Mailbox *m, struct EmailList *el);
66 void mutt_check_stats(struct Mailbox *m);
67 bool mutt_check_traditional_pgp(struct Mailbox *m, struct EmailList *el, MuttRedrawFlags *redraw);
68 void mutt_commands_cleanup(void);
69 void mutt_display_address(struct Envelope *env);
70 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);
71 bool mutt_edit_content_type(struct Email *e, struct Body *b, FILE *fp);
72 void mutt_enter_command(void);
73 void mutt_pipe_message(struct Mailbox *m, struct EmailList *el);
74 void mutt_print_message(struct Mailbox *m, struct EmailList *el);
75 int mutt_save_message(struct Mailbox *m, struct EmailList *el, enum MessageSaveOpt, enum MessageTransformOpt transform_opt);
76 int mutt_save_message_ctx(struct Email *e, enum MessageSaveOpt, enum MessageTransformOpt transform_opt, struct Mailbox *m);
77 int mutt_select_sort(bool reverse);
78 bool mutt_shell_escape(void);
79 
80 #endif /* MUTT_COMMANDS_H */
Envelope
The header of an Email.
Definition: envelope.h:54
mutt_check_traditional_pgp
bool mutt_check_traditional_pgp(struct Mailbox *m, struct EmailList *el, MuttRedrawFlags *redraw)
Check if a message has inline PGP content.
Definition: commands.c:1467
mutt_enter_command
void mutt_enter_command(void)
enter a neomutt command
Definition: commands.c:878
Mailbox
A mailbox.
Definition: mailbox.h:81
C_PipeSep
char * C_PipeSep
Config: Separator to add between multiple piped messages.
Definition: commands.c:87
TRANSFORM_NONE
@ TRANSFORM_NONE
No transformation.
Definition: commands.h:51
C_PipeDecode
bool C_PipeDecode
Config: Decode the message when piping it.
Definition: commands.c:86
SAVE_COPY
@ SAVE_COPY
Copy message, making a duplicate in another mailbox.
Definition: commands.h:61
mutt_select_sort
int mutt_select_sort(bool reverse)
Ask the user for a sort method.
Definition: commands.c:769
Body
The body of an email.
Definition: body.h:34
MuttWindow
A division of the screen.
Definition: mutt_window.h:115
mutt_save_message_ctx
int mutt_save_message_ctx(struct Email *e, enum MessageSaveOpt, enum MessageTransformOpt transform_opt, struct Mailbox *m)
Save a message to a given mailbox.
Definition: commands.c:1001
SAVE_MOVE
@ SAVE_MOVE
Move message to another mailbox, removing the original.
Definition: commands.h:62
mutt_display_address
void mutt_display_address(struct Envelope *env)
Display the address of a message.
Definition: commands.c:927
mutt_edit_content_type
bool mutt_edit_content_type(struct Email *e, struct Body *b, FILE *fp)
Edit the content type of an attachment.
Definition: commands.c:1324
mutt_commands_cleanup
void mutt_commands_cleanup(void)
Clean up commands globals.
Definition: commands.c:101
TRANSFORM_DECODE
@ TRANSFORM_DECODE
Decode message.
Definition: commands.h:53
ci_bounce_message
void ci_bounce_message(struct Mailbox *m, struct EmailList *el)
Bounce an email.
Definition: commands.c:411
mutt_shell_escape
bool mutt_shell_escape(void)
invoke a command in a subshell
Definition: commands.c:845
mutt_pipe_message
void mutt_pipe_message(struct Mailbox *m, struct EmailList *el)
Pipe a message.
Definition: commands.c:702
mutt_menu.h
MessageSaveOpt
MessageSaveOpt
Message save option.
Definition: commands.h:59
TRANSFORM_DECRYPT
@ TRANSFORM_DECRYPT
Decrypt message.
Definition: commands.h:52
MuttRedrawFlags
uint16_t MuttRedrawFlags
Flags, e.g. REDRAW_INDEX.
Definition: mutt_menu.h:38
MessageTransformOpt
MessageTransformOpt
Message transformation option.
Definition: commands.h:49
C_PromptAfter
bool C_PromptAfter
Config: Pause after running an external pager.
Definition: commands.c:91
mutt_print_message
void mutt_print_message(struct Mailbox *m, struct EmailList *el)
Print a message.
Definition: commands.c:730
mutt_check_stats
void mutt_check_stats(struct Mailbox *m)
Forcibly update mailbox stats.
Definition: commands.c:1483
mutt_save_message
int mutt_save_message(struct Mailbox *m, struct EmailList *el, enum MessageSaveOpt, enum MessageTransformOpt transform_opt)
Save an email.
Definition: commands.c:1037
mutt_display_message
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:206
C_PrintSplit
bool C_PrintSplit
Config: Print multiple messages separately.
Definition: commands.c:90
Email
The envelope/body of an email.
Definition: email.h:37
C_DisplayFilter
char * C_DisplayFilter
Config: External command to pre-process an email before display.
Definition: commands.c:85
C_PipeSplit
bool C_PipeSplit
Config: Run the pipe command on each message separately.
Definition: commands.c:88
C_PrintDecode
bool C_PrintDecode
Config: Decode message before printing it.
Definition: commands.c:89