This handler is passed the application/octet-stream directly. The caller must propagate b->goodsig to its parent.
2660{
2661 int is_signed;
2662 int rc = 0;
2663
2665
2667 if (!fp_out)
2668 {
2671 {
2673 }
2674 return -1;
2675 }
2676
2678 if (tattach)
2679 {
2680 tattach->
goodsig = is_signed > 0;
2681
2683 {
2685 _(
"[-- The following data is PGP/MIME signed and encrypted --]\n\n") :
2686 _(
"[-- The following data is PGP/MIME encrypted --]\n\n"));
2688 }
2689
2690
2691
2692
2693
2697
2698 FILE *fp_save = state->
fp_in;
2699 state->
fp_in = fp_out;
2701 state->
fp_in = fp_save;
2702
2703
2704
2705
2707 {
2711 }
2712
2713
2714
2715
2718
2720 {
2723 _(
"[-- End of PGP/MIME signed and encrypted data --]\n") :
2724 _(
"[-- End of PGP/MIME encrypted data --]\n"));
2725 }
2726
2729 }
2730 else
2731 {
2732#ifdef USE_AUTOCRYPT
2734#endif
2735 {
2737 }
2738 rc = -1;
2739 }
2740
2743
2744 return rc;
2745}
SecurityFlags mutt_is_multipart_signed(struct Body *b)
Is a message signed?
static struct Body * decrypt_part(struct Body *b, struct State *state, FILE *fp_out, bool is_smime, int *r_is_signed)
Decrypt a PGP or SMIME message.
void mutt_body_free(struct Body **ptr)
Free a Body.
void mutt_env_free(struct Envelope **ptr)
Free an Envelope.
int mutt_file_fclose(FILE **fp)
Close a FILE handle (and NULL the pointer)
bool OptAutocryptGpgme
(pseudo) use Autocrypt context inside ncrypt/crypt_gpgme.c
int mutt_protected_headers_handler(struct Body *b_email, struct State *state)
Handler for protected headers - Implements handler_t -.
#define mutt_message(...)
#define mutt_debug(LEVEL,...)
int mutt_body_handler(struct Body *b, struct State *state)
Handler for the Body of an email.
@ LL_DEBUG2
Log at debug level 2.
void state_attach_puts(struct State *state, const char *t)
Write a string to the state.
#define state_puts(STATE, STR)
#define STATE_DISPLAY
Output is displayed to the user.
struct Body * parts
parts of a multipart or message/rfc822
struct Envelope * mime_headers
Memory hole protected headers.
struct Body * next
next attachment in the list
bool goodsig
Good cryptographic signature.
StateFlags flags
Flags, e.g. STATE_DISPLAY.
FILE * fp_in
File to read from.
#define mutt_file_mkstemp()