From 698749e7a7d03e7c9bf5897d8d1b698cc0db020c Mon Sep 17 00:00:00 2001 From: Dmitry Isaikin Date: Thu, 10 Mar 2016 12:21:53 +0300 Subject: Interpret 'uuencode' in IMAP BODYSTRUCTURE response as UUEncode encoding --- src/core/imap/MCIMAPPart.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/imap/MCIMAPPart.cpp b/src/core/imap/MCIMAPPart.cpp index 21336aa3..0c2b6bf4 100644 --- a/src/core/imap/MCIMAPPart.cpp +++ b/src/core/imap/MCIMAPPart.cpp @@ -184,7 +184,8 @@ void IMAPPart::importIMAPFields(struct mailimap_body_fields * fields, isUUEncode = false; if (fields->bd_encoding->enc_type == MAILIMAP_BODY_FLD_ENC_OTHER) { - if (strcasecmp(fields->bd_encoding->enc_value, "x-uuencode") == 0) { + if (strcasecmp(fields->bd_encoding->enc_value, "x-uuencode") == 0 || + strcasecmp(fields->bd_encoding->enc_value, "uuencode") == 0) { isUUEncode = true; } } -- cgit v1.2.3