diff options
Diffstat (limited to 'em-format')
-rw-r--r-- | em-format/em-format.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/em-format/em-format.c b/em-format/em-format.c index 119ac646a2..baa1803276 100644 --- a/em-format/em-format.c +++ b/em-format/em-format.c @@ -1612,8 +1612,9 @@ emf_multipart_alternative (EMFormat *emf, /*if (want_plain && !strcmp (mime_type, "text/plain")) return part;*/ - if (em_format_find_handler(emf, mime_type) - || (best == NULL && em_format_fallback_handler(emf, mime_type))) { + if (!em_format_is_attachment (emf, part) && + (em_format_find_handler (emf, mime_type) + || (best == NULL && em_format_fallback_handler (emf, mime_type)))) { best = part; bestid = i; } |