25#ifndef MUTT_EMAIL_COPY_EMAIL_H
26#define MUTT_EMAIL_COPY_EMAIL_H
58#define MUTT_CM_DECODE_CRYPT (MUTT_CM_DECODE_PGP | MUTT_CM_DECODE_SMIME)
CopyMessageFlag
Flags for mutt_copy_message(), e.g.
@ MUTT_CM_PREFIX
Quote the header and body.
@ MUTT_CM_REPLYING
Replying the message.
@ MUTT_CM_DECODE_SMIME
Used for decoding S/MIME messages.
@ MUTT_CM_DECODE_PGP
Used for decoding PGP messages.
@ MUTT_CM_DECODE
Decode the message body into text/plain.
@ MUTT_CM_NOHEADER
Don't copy the message header.
@ MUTT_CM_PRINTING
Printing the message - display light.
@ MUTT_CM_CHARCONV
Perform character set conversions.
@ MUTT_CM_UPDATE
Update structs on sync.
@ MUTT_CM_DISPLAY
Output is displayed to the user.
@ MUTT_CM_VERIFY
Do signature verification.
@ MUTT_CM_WEED
Weed message/rfc822 attachment headers.
@ MUTT_CM_NONE
No flags are set.
int mutt_copy_header(FILE *fp_in, struct Email *e, FILE *fp_out, CopyHeaderFlags chflags, const char *prefix, int wraplen)
Copy Email header.
int mutt_append_message(struct Mailbox *m_dst, struct Mailbox *m_src, struct Email *e, struct Message *msg, CopyMessageFlags cmflags, CopyHeaderFlags chflags)
Append a message.
int mutt_copy_hdr(FILE *fp_in, FILE *fp_out, LOFF_T off_start, LOFF_T off_end, CopyHeaderFlags chflags, const char *prefix, int wraplen)
Copy header from one file to another.
int mutt_copy_message(FILE *fp_out, struct Email *e, struct Message *msg, CopyMessageFlags cmflags, CopyHeaderFlags chflags, int wraplen)
Copy a message from a Mailbox.
int mutt_copy_message_fp(FILE *fp_out, FILE *fp_in, struct Email *e, CopyMessageFlags cmflags, CopyHeaderFlags chflags, int wraplen)
Make a copy of a message from a FILE pointer.
CopyHeaderFlag
Flags for mutt_copy_header(), e.g.
@ CH_UPDATE
Update the status and x-status fields?
@ CH_XMIT
Transmitting this message? (Ignore Lines: and Content-Length:)
@ CH_WEED_DELIVERED
Weed eventual Delivered-To headers.
@ CH_UPDATE_LEN
Update Lines: and Content-Length:
@ CH_WEED
Weed the headers?
@ CH_FROM
Retain the "From " message separator?
@ CH_UPDATE_LABEL
Update X-Label: from email->env->x_label?
@ CH_UPDATE_IRT
Update In-Reply-To:
@ CH_NOSTATUS
Suppress the status and x-status fields.
@ CH_DISPLAY
Display result to user.
@ CH_UPDATE_REFS
Update References:
@ CH_MIME
Ignore MIME fields.
@ CH_PREFIX
Quote header using $indent_string string?
@ CH_NOLEN
Don't write Content-Length: and Lines:
@ CH_VIRTUAL
Write virtual header lines too.
@ CH_NONE
No flags are set.
@ CH_UPDATE_SUBJECT
Update Subject: protected header update.
@ CH_TXTPLAIN
Generate text/plain MIME headers.
@ CH_DECODE
Do RFC2047 header decoding.
@ CH_NONEWLINE
Don't output terminating newline after the header.
@ CH_NOQFROM
Ignore ">From " line.
@ CH_FORCE_FROM
Give CH_FROM precedence over CH_WEED?
@ CH_REORDER
Re-order output of headers (specified by 'header-order')
uint16_t CopyMessageFlags
The envelope/body of an email.
A local copy of an email.