From 1f23f6711e12b838068695ab1351333010c19161 Mon Sep 17 00:00:00 2001 From: Alex Bogma Date: Mon, 5 Jan 2015 14:49:22 +0200 Subject: Read all ContentType parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Save other ContentType parameters (not only ‘name’ and ‘charset’) when parsing IMAP body structure. --- src/core/abstract/MCAbstractPart.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/core/abstract/MCAbstractPart.cpp b/src/core/abstract/MCAbstractPart.cpp index 783d47a9..e88a5a36 100644 --- a/src/core/abstract/MCAbstractPart.cpp +++ b/src/core/abstract/MCAbstractPart.cpp @@ -204,6 +204,10 @@ void AbstractPart::importIMAPFields(struct mailimap_body_fields * fields, else if (strcasecmp(imap_param->pa_name, "charset") == 0) { setCharset(String::stringByDecodingMIMEHeaderValue(imap_param->pa_value)); } + else { + setContentTypeParameter(String::stringWithUTF8Characters(imap_param->pa_name), + String::stringByDecodingMIMEHeaderValue(imap_param->pa_value)); + } } } if (fields->bd_id != NULL) { -- cgit v1.2.3