1602 bool plaintext =
false;
1606 static unsigned short recurse_level = 0;
1608 const int oflags = s->
flags;
1635 handler = encrypted_handler;
1637 else if (c_reflow_text &&
1669 else if (!
mutt_str_equal(
"inline", c_show_multipart_alternative) &&
1677 mutt_error(
_(
"Error: multipart/signed has no protocol"));
1684 handler = encrypted_handler;
1689 handler = encrypted_handler;
1712 handler = encrypted_handler;
1717 handler = encrypted_handler;
1729 encrypted_handler && !c_include_encrypted)
1743 if (!is_attachment_display)
1745 char keystroke[128] = { 0 };
1752 mutt_buffer_printf(&msg,
_(
"[-- This is an attachment (use '%s' to view this part) --]\n"),
1759 mutt_buffer_printf(&msg,
_(
"[-- %s/%s is unsupported (use '%s' to view this part) --]\n"),
1767 mutt_buffer_strcpy(&msg,
_(
"[-- This is an attachment (need 'view-attachments' bound to key) --]\n"));
1772 mutt_buffer_printf(&msg,
_(
"[-- %s/%s is unsupported (need 'view-attachments' bound to key) --]\n"),
struct Buffer mutt_buffer_make(size_t size)
Make a new buffer on the stack.
size_t mutt_buffer_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
void mutt_buffer_dealloc(struct Buffer *buf)
Release the memory allocated by a buffer.
int mutt_buffer_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
SecurityFlags mutt_is_application_pgp(struct Body *b)
Does the message use PGP?
SecurityFlags mutt_is_application_smime(struct Body *b)
Does the message use S/MIME?
int mutt_is_valid_multipart_pgp_encrypted(struct Body *b)
Is this a valid multi-part encrypted message?
SecurityFlags mutt_is_malformed_multipart_pgp_encrypted(struct Body *b)
Check for malformed layout.
static int multipart_handler(struct Body *a, struct State *s)
Handler for multipart emails - Implements handler_t -.
static int message_handler(struct Body *a, struct State *s)
Handler for message/rfc822 body parts - Implements handler_t -.
static int malformed_pgp_encrypted_handler(struct Body *b, struct State *s)
Handler for invalid pgp-encrypted emails - Implements handler_t -.
int rfc3676_handler(struct Body *a, struct State *s)
Body handler implementing RFC3676 for format=flowed - Implements handler_t -.
int mutt_signed_handler(struct Body *b, struct State *s)
Verify a "multipart/signed" body - Implements handler_t -.
static int autoview_handler(struct Body *a, struct State *s)
Handler for autoviewable attachments - Implements handler_t -.
static int text_plain_handler(struct Body *b, struct State *s)
Handler for plain text - Implements handler_t -.
int text_enriched_handler(struct Body *a, struct State *s)
Handler for enriched text - Implements handler_t -.
static int multilingual_handler(struct Body *a, struct State *s)
Handler for multi-lingual emails - Implements handler_t -.
static int alternative_handler(struct Body *a, struct State *s)
Handler for multipart alternative emails - Implements handler_t -.
static int valid_pgp_encrypted_handler(struct Body *b, struct State *s)
Handler for valid pgp-encrypted emails - Implements handler_t -.
static int external_body_handler(struct Body *b, struct State *s)
Handler for external-body emails - Implements handler_t -.
int crypt_smime_application_handler(struct Body *b, struct State *s)
Wrapper for CryptModuleSpecs::application_handler() - Implements handler_t -.
int crypt_pgp_application_handler(struct Body *b, struct State *s)
Wrapper for CryptModuleSpecs::application_handler() - Implements handler_t -.
int(* handler_t)(struct Body *b, struct State *s)
static bool is_autoview(struct Body *b)
Should email body be filtered by mailcap.
bool mutt_prefer_as_attachment(struct Body *b)
Do we want this part as an attachment?
static int run_decode_and_handler(struct Body *b, struct State *s, handler_t handler, bool plaintext)
Run an appropriate decoder for an email.
const char * cs_subset_string(const struct ConfigSubset *sub, const char *name)
Get a string config item by name.
struct Keymap * km_find_func(enum MenuType mtype, int func)
Find a function's mapping in a Menu.
int km_expand_key(char *s, size_t len, struct Keymap *map)
Get the key string bound to a Keymap.
#define MUTT_MIME_MAX_DEPTH
@ TYPE_MESSAGE
Type: 'message/*'.
@ TYPE_MULTIPART
Type: 'multipart/*'.
@ TYPE_APPLICATION
Type: 'application/*'.
@ DISP_ATTACH
Content is attached.
#define MUTT_VERIFY
Perform signature verification.
#define MUTT_CHARCONV
Do character set conversions.
#define MUTT_DISPLAY
Output is displayed to the user.
#define MUTT_DISPLAY_ATTACH
We are displaying an attachment.
#define MUTT_REPLYING
Are we replying?
#define APPLICATION_PGP
Use PGP to encrypt/sign.
#define APPLICATION_SMIME
Use SMIME to encrypt/sign.
bool OptDontHandlePgpKeys
(pseudo) used to extract PGP keys
bool mutt_is_message_type(int type, const char *subtype)
Determine if a mime type matches a message or not.
unsigned int disposition
content-disposition, ContentDisposition
@ MENU_PAGER
Pager pager (email viewer)