NeoMutt  2022-04-29-215-gc12b98
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
29struct Body;
30struct Email;
31struct EmailList;
32struct Envelope;
33struct Mailbox;
34
39{
43};
44
49{
52};
53
54void ci_bounce_message(struct Mailbox *m, struct EmailList *el);
55bool mutt_check_traditional_pgp(struct Mailbox *m, struct EmailList *el);
56void mutt_commands_cleanup(void);
57void mutt_display_address(struct Envelope *env);
58bool mutt_edit_content_type(struct Email *e, struct Body *b, FILE *fp);
59void mutt_enter_command(void);
60void mutt_pipe_message(struct Mailbox *m, struct EmailList *el);
61void mutt_print_message(struct Mailbox *m, struct EmailList *el);
62int mutt_save_message(struct Mailbox *m, struct EmailList *el, enum MessageSaveOpt, enum MessageTransformOpt transform_opt);
63int mutt_save_message_ctx(struct Mailbox *m_src, struct Email *e, enum MessageSaveOpt save_opt, enum MessageTransformOpt transform_opt, struct Mailbox *m_dst);
64bool mutt_select_sort(bool reverse);
65bool mutt_shell_escape(void);
66
67#endif /* MUTT_COMMANDS_H */
bool mutt_select_sort(bool reverse)
Ask the user for a sort method.
Definition: commands.c:495
void mutt_print_message(struct Mailbox *m, struct EmailList *el)
Print a message.
Definition: commands.c:453
void mutt_commands_cleanup(void)
Clean up commands globals.
Definition: commands.c:81
void ci_bounce_message(struct Mailbox *m, struct EmailList *el)
Bounce an email.
Definition: commands.c:91
MessageTransformOpt
Message transformation option.
Definition: commands.h:39
@ TRANSFORM_NONE
No transformation.
Definition: commands.h:40
@ TRANSFORM_DECODE
Decode message.
Definition: commands.h:42
@ TRANSFORM_DECRYPT
Decrypt message.
Definition: commands.h:41
void mutt_enter_command(void)
Enter a neomutt command.
Definition: commands.c:641
int mutt_save_message(struct Mailbox *m, struct EmailList *el, enum MessageSaveOpt, enum MessageTransformOpt transform_opt)
Save an email.
Definition: commands.c:813
int mutt_save_message_ctx(struct Mailbox *m_src, struct Email *e, enum MessageSaveOpt save_opt, enum MessageTransformOpt transform_opt, struct Mailbox *m_dst)
Save a message to a given mailbox.
Definition: commands.c:772
bool mutt_shell_escape(void)
Invoke a command in a subshell.
Definition: commands.c:599
MessageSaveOpt
Message save option.
Definition: commands.h:49
@ SAVE_MOVE
Move message to another mailbox, removing the original.
Definition: commands.h:51
@ SAVE_COPY
Copy message, making a duplicate in another mailbox.
Definition: commands.h:50
bool mutt_edit_content_type(struct Email *e, struct Body *b, FILE *fp)
Edit the content type of an attachment.
Definition: commands.c:1105
bool mutt_check_traditional_pgp(struct Mailbox *m, struct EmailList *el)
Check if a message has inline PGP content.
Definition: commands.c:1247
void mutt_pipe_message(struct Mailbox *m, struct EmailList *el)
Pipe a message.
Definition: commands.c:422
void mutt_display_address(struct Envelope *env)
Display the address of a message.
Definition: commands.c:696
The body of an email.
Definition: body.h:36
The envelope/body of an email.
Definition: email.h:37
The header of an Email.
Definition: envelope.h:57
A mailbox.
Definition: mailbox.h:79