NeoMutt  2024-04-25-85-g27bab4
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
external.h
Go to the documentation of this file.
1
25#ifndef MUTT_EXTERNAL_H
26#define MUTT_EXTERNAL_H
27
28#include <stdbool.h>
29#include <stdio.h>
30
31struct Body;
32struct Email;
33struct EmailArray;
34struct Envelope;
35struct Mailbox;
36
41{
45};
46
51{
54};
55
56void index_bounce_message(struct Mailbox *m, struct EmailArray *ea);
57bool mutt_check_traditional_pgp(struct Mailbox *m, struct EmailArray *ea);
58void external_cleanup(void);
59void mutt_display_address(struct Envelope *env);
60bool mutt_edit_content_type(struct Email *e, struct Body *b, FILE *fp);
61void mutt_enter_command(void);
62void mutt_pipe_message(struct Mailbox *m, struct EmailArray *ea);
63void mutt_print_message(struct Mailbox *m, struct EmailArray *ea);
64int mutt_save_message(struct Mailbox *m, struct EmailArray *ea, enum MessageSaveOpt save_opt, enum MessageTransformOpt transform_opt);
65int mutt_save_message_mbox(struct Mailbox *m_src, struct Email *e, enum MessageSaveOpt save_opt, enum MessageTransformOpt transform_opt, struct Mailbox *m_dst);
66bool mutt_select_sort(bool reverse);
67bool mutt_shell_escape(void);
68
69#endif /* MUTT_EXTERNAL_H */
void mutt_print_message(struct Mailbox *m, struct EmailArray *ea)
Print a message.
Definition: external.c:438
bool mutt_select_sort(bool reverse)
Ask the user for a sort method.
Definition: external.c:476
void mutt_pipe_message(struct Mailbox *m, struct EmailArray *ea)
Pipe a message.
Definition: external.c:407
bool mutt_check_traditional_pgp(struct Mailbox *m, struct EmailArray *ea)
Check if a message has inline PGP content.
Definition: external.c:1211
MessageTransformOpt
Message transformation option.
Definition: external.h:41
@ TRANSFORM_NONE
No transformation.
Definition: external.h:42
@ TRANSFORM_DECODE
Decode message.
Definition: external.h:44
@ TRANSFORM_DECRYPT
Decrypt message.
Definition: external.h:43
int mutt_save_message_mbox(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: external.c:737
void index_bounce_message(struct Mailbox *m, struct EmailArray *ea)
Bounce an email.
Definition: external.c:90
void mutt_enter_command(void)
Enter a neomutt command.
Definition: external.c:621
int mutt_save_message(struct Mailbox *m, struct EmailArray *ea, enum MessageSaveOpt save_opt, enum MessageTransformOpt transform_opt)
Save an email.
Definition: external.c:778
bool mutt_shell_escape(void)
Invoke a command in a subshell.
Definition: external.c:579
void external_cleanup(void)
Clean up commands globals.
Definition: external.c:80
MessageSaveOpt
Message save option.
Definition: external.h:51
@ SAVE_MOVE
Move message to another mailbox, removing the original.
Definition: external.h:53
@ SAVE_COPY
Copy message, making a duplicate in another mailbox.
Definition: external.h:52
bool mutt_edit_content_type(struct Email *e, struct Body *b, FILE *fp)
Edit the content type of an attachment.
Definition: external.c:1070
void mutt_display_address(struct Envelope *env)
Display the address of a message.
Definition: external.c:661
The body of an email.
Definition: body.h:36
The envelope/body of an email.
Definition: email.h:39
The header of an Email.
Definition: envelope.h:57
A mailbox.
Definition: mailbox.h:79