1085{
1086 const char *mbox = NULL;
1087 const char *certfile = NULL;
1088 int rc = 1;
1089
1093 if (!fp_out)
1094 {
1096 goto cleanup;
1097 }
1098
1103
1104 fflush(fp_out);
1106
1108 {
1111 }
1113 {
1116 }
1117
1118 if (mbox)
1119 {
1121 if (certfile)
1122 {
1125 {
1126 if (isendwin())
1128 }
1129 else
1130 {
1131 rc = 0;
1132 }
1135 }
1136 else
1137 {
1139 }
1140 }
1141 else
1142 {
1144 }
1145
1147
1148cleanup:
1150 return rc;
1151}
void mutt_expand_aliases(struct AddressList *al)
Expand aliases in a List of Addresses.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
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.
@ MUTT_CM_DECODE_SMIME
Used for decoding S/MIME messages.
@ MUTT_CM_NONE
No flags are set.
#define MUTT_CM_DECODE_CRYPT
Combination flag for decoding any kind of cryptography (PGP or S/MIME).
@ CH_WEED
Weed the headers?
@ CH_MIME
Ignore MIME fields.
@ CH_NONE
No flags are set.
@ CH_NONEWLINE
Don't output terminating newline after the header.
int mutt_any_key_to_continue(const char *s)
Prompt the user to 'press any key' and wait.
void mutt_file_unlink(const char *s)
Delete a file, carefully.
#define mutt_file_fclose(FP)
#define mutt_file_fopen(PATH, MODE)
#define FREE(x)
Free memory and set the pointer to NULL.
@ SEC_ENCRYPT
Email is encrypted.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
#define TAILQ_FIRST(head)
#define TAILQ_EMPTY(head)
static char * smime_extract_signer_certificate(const char *infile)
Extract the signer's certificate.
static int smime_handle_cert_email(const char *certificate, const char *mailbox, bool copy, char ***buffer, int *num)
Process an email containing certificates.
String manipulation buffer.
struct Envelope * env
Envelope information.
SecurityFlags security
bit 0-10: flags, bit 11,12: application, bit 13: traditional pgp See: ncrypt/lib.h pgplib....
struct AddressList sender
Email's sender.
struct AddressList from
Email's 'From' list.