Manage where the email is piped to external commands. More...
#include <stdbool.h>
#include <stdio.h>
Go to the source code of this file.
Enumerations | |
enum | MessageTransformOpt { TRANSFORM_NONE = 0 , TRANSFORM_DECRYPT , TRANSFORM_DECODE } |
Message transformation option. More... | |
enum | MessageSaveOpt { SAVE_COPY = 0 , SAVE_MOVE } |
Message save option. More... | |
Functions | |
void | index_bounce_message (struct Mailbox *m, struct EmailArray *ea) |
Bounce an email. | |
bool | mutt_check_traditional_pgp (struct Mailbox *m, struct EmailArray *ea) |
Check if a message has inline PGP content. | |
void | external_cleanup (void) |
Clean up commands globals. | |
void | mutt_display_address (struct Envelope *env) |
Display the address of a message. | |
bool | mutt_edit_content_type (struct Email *e, struct Body *b, FILE *fp) |
Edit the content type of an attachment. | |
void | mutt_enter_command (void) |
Enter a neomutt command. | |
void | mutt_pipe_message (struct Mailbox *m, struct EmailArray *ea) |
Pipe a message. | |
void | mutt_print_message (struct Mailbox *m, struct EmailArray *ea) |
Print a message. | |
int | mutt_save_message (struct Mailbox *m, struct EmailArray *ea, enum MessageSaveOpt save_opt, enum MessageTransformOpt transform_opt) |
Save an email. | |
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. | |
bool | mutt_select_sort (bool reverse) |
Ask the user for a sort method. | |
bool | mutt_shell_escape (void) |
Invoke a command in a subshell. | |
Manage where the email is piped to external commands.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file external.h.
enum MessageTransformOpt |
Message transformation option.
Enumerator | |
---|---|
TRANSFORM_NONE | No transformation. |
TRANSFORM_DECRYPT | Decrypt message. |
TRANSFORM_DECODE | Decode message. |
Definition at line 40 of file external.h.
enum MessageSaveOpt |
Message save option.
Enumerator | |
---|---|
SAVE_COPY | Copy message, making a duplicate in another mailbox. |
SAVE_MOVE | Move message to another mailbox, removing the original. |
Definition at line 50 of file external.h.
void index_bounce_message | ( | struct Mailbox * | m, |
struct EmailArray * | ea | ||
) |
Bounce an email.
m | Mailbox |
ea | Array of Emails to bounce |
Definition at line 90 of file external.c.
bool mutt_check_traditional_pgp | ( | struct Mailbox * | m, |
struct EmailArray * | ea | ||
) |
Check if a message has inline PGP content.
m | Mailbox |
ea | Array of Emails to check |
true | Message contains inline PGP content |
Definition at line 1211 of file external.c.
void external_cleanup | ( | void | ) |
Clean up commands globals.
Definition at line 80 of file external.c.
void mutt_display_address | ( | struct Envelope * | env | ) |
Display the address of a message.
env | Envelope containing address |
Definition at line 661 of file external.c.
Edit the content type of an attachment.
e | |
b | Attachment |
fp | File handle to the attachment |
true | A Any change is made |
recvattach requires the return code to know when to regenerate the actx.
Definition at line 1070 of file external.c.
void mutt_enter_command | ( | void | ) |
Enter a neomutt command.
Definition at line 621 of file external.c.
void mutt_pipe_message | ( | struct Mailbox * | m, |
struct EmailArray * | ea | ||
) |
Pipe a message.
m | Mailbox |
ea | Array of Emails to pipe |
Definition at line 407 of file external.c.
void mutt_print_message | ( | struct Mailbox * | m, |
struct EmailArray * | ea | ||
) |
Print a message.
m | Mailbox |
ea | Array of Emails to print |
Definition at line 438 of file external.c.
int mutt_save_message | ( | struct Mailbox * | m, |
struct EmailArray * | ea, | ||
enum MessageSaveOpt | save_opt, | ||
enum MessageTransformOpt | transform_opt | ||
) |
Save an email.
m | Mailbox |
ea | Array of Emails to save |
save_opt | Copy or move, e.g. SAVE_MOVE |
transform_opt | Transformation, e.g. TRANSFORM_DECRYPT |
0 | Copy/save was successful |
-1 | Error/abort |
Definition at line 778 of file external.c.
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.
m_src | Mailbox to copy from |
e | |
save_opt | Copy or move, e.g. SAVE_MOVE |
transform_opt | Transformation, e.g. TRANSFORM_DECRYPT |
m_dst | Mailbox to save to |
0 | Success |
-1 | Error |
Definition at line 737 of file external.c.
bool mutt_select_sort | ( | bool | reverse | ) |
Ask the user for a sort method.
reverse | If true make it a reverse sort |
true | The sort type changed |
Definition at line 476 of file external.c.
bool mutt_shell_escape | ( | void | ) |
Invoke a command in a subshell.
true | A command was invoked (no matter what its result) |
false | No command was invoked |
Definition at line 579 of file external.c.