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 | ci_bounce_message (struct Mailbox *m, struct EmailList *el) |
Bounce an email. More... | |
bool | mutt_check_traditional_pgp (struct Mailbox *m, struct EmailList *el) |
Check if a message has inline PGP content. More... | |
void | mutt_commands_cleanup (void) |
Clean up commands globals. More... | |
void | mutt_display_address (struct Envelope *env) |
Display the address of a message. More... | |
bool | mutt_edit_content_type (struct Email *e, struct Body *b, FILE *fp) |
Edit the content type of an attachment. More... | |
void | mutt_enter_command (void) |
Enter a neomutt command. More... | |
void | mutt_pipe_message (struct Mailbox *m, struct EmailList *el) |
Pipe a message. More... | |
void | mutt_print_message (struct Mailbox *m, struct EmailList *el) |
Print a message. More... | |
int | mutt_save_message (struct Mailbox *m, struct EmailList *el, enum MessageSaveOpt, enum MessageTransformOpt transform_opt) |
Save an email. More... | |
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. More... | |
bool | mutt_select_sort (bool reverse) |
Ask the user for a sort method. More... | |
bool | mutt_shell_escape (void) |
Invoke a command in a subshell. More... | |
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 commands.h.
enum MessageTransformOpt |
Message transformation option.
Enumerator | |
---|---|
TRANSFORM_NONE | No transformation. |
TRANSFORM_DECRYPT | Decrypt message. |
TRANSFORM_DECODE | Decode message. |
Definition at line 38 of file commands.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 48 of file commands.h.
void ci_bounce_message | ( | struct Mailbox * | m, |
struct EmailList * | el | ||
) |
Bounce an email.
m | Mailbox |
el | List of Emails to bounce |
Definition at line 91 of file commands.c.
bool mutt_check_traditional_pgp | ( | struct Mailbox * | m, |
struct EmailList * | el | ||
) |
Check if a message has inline PGP content.
m | Mailbox |
el | List of Emails to check |
true | Message contains inline PGP content |
Definition at line 1247 of file commands.c.
void mutt_commands_cleanup | ( | void | ) |
Clean up commands globals.
Definition at line 81 of file commands.c.
void mutt_display_address | ( | struct Envelope * | env | ) |
Display the address of a message.
env | Envelope containing address |
Definition at line 696 of file commands.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 1105 of file commands.c.
void mutt_enter_command | ( | void | ) |
Enter a neomutt command.
Definition at line 641 of file commands.c.
void mutt_pipe_message | ( | struct Mailbox * | m, |
struct EmailList * | el | ||
) |
Pipe a message.
m | Mailbox |
el | List of Emails to pipe |
Definition at line 422 of file commands.c.
void mutt_print_message | ( | struct Mailbox * | m, |
struct EmailList * | el | ||
) |
Print a message.
m | Mailbox |
el | List of Emails to print |
Definition at line 453 of file commands.c.
int mutt_save_message | ( | struct Mailbox * | m, |
struct EmailList * | el, | ||
enum MessageSaveOpt | save_opt, | ||
enum MessageTransformOpt | transform_opt | ||
) |
Save an email.
m | Mailbox |
el | List 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 813 of file commands.c.
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.
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 772 of file commands.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 495 of file commands.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 599 of file commands.c.