content-transfer-encodings. Noted by Björn Jacke.
size_t l2;
size_t l3;
- state_set_prefix(s);
+ if (istext)
+ state_set_prefix(s);
while (len > 0)
{
buf[4] = 0;
- if (istext) state_set_prefix(s);
+ if (istext)
+ state_set_prefix(s);
while (len > 0)
{
/* see if we need to decode this part before processing it */
if (b->encoding == ENCBASE64 || b->encoding == ENCQUOTEDPRINTABLE ||
- b->encoding == ENCUUENCODED || plaintext)
+ b->encoding == ENCUUENCODED || plaintext ||
+ mutt_is_text_type (b->type, b->subtype)) /* text subtypes may
+ * require character
+ * set conversion even
+ * with 8bit encoding.
+ */
{
int origType = b->type;
char *savePrefix = NULL;