1233{
1234 char *mbox = NULL, *certfile = NULL;
1235 int rc = 1;
1236
1240 if (!fp_out)
1241 {
1243 goto cleanup;
1244 }
1245
1250
1251 fflush(fp_out);
1253
1255 {
1258 }
1260 {
1263 }
1264
1265 if (mbox)
1266 {
1268 if (certfile)
1269 {
1272 {
1273 if (isendwin())
1275 }
1276 else
1277 rc = 0;
1280 }
1281 else
1283 }
1284 else
1286
1288
1289cleanup:
1291 return rc;
1292}
void mutt_expand_aliases(struct AddressList *al)
Expand aliases in a List of Addresses.
static const char * mutt_buffer_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.
#define CH_NONEWLINE
Don't output terminating newline after the header.
#define CH_WEED
Weed the headers?
#define MUTT_CM_DECODE_SMIME
Used for decoding S/MIME messages.
#define CH_MIME
Ignore MIME fields.
#define MUTT_CM_NO_FLAGS
No flags are set.
#define MUTT_CM_DECODE_CRYPT
#define CH_NO_FLAGS
No flags are set.
int mutt_any_key_to_continue(const char *s)
Prompt the user to 'press any key' and wait.
FILE * mutt_file_fopen(const char *path, const char *mode)
Call fopen() safely.
int mutt_file_fclose(FILE **fp)
Close a FILE handle (and NULL the pointer)
void mutt_file_unlink(const char *s)
Delete a file, carefully.
#define mutt_buffer_mktemp(buf)
#define SEC_ENCRYPT
Email is encrypted.
void mutt_buffer_pool_release(struct Buffer **pbuf)
Free a Buffer from the pool.
struct Buffer * mutt_buffer_pool_get(void)
Get a Buffer from the pool.
#define TAILQ_FIRST(head)
#define TAILQ_EMPTY(head)
static int smime_handle_cert_email(char *certificate, char *mailbox, bool copy, char ***buffer, int *num)
Process an email containing certificates.
static char * smime_extract_signer_certificate(const char *infile)
Extract the signer's certificate.
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.