Skip to content

Conversation

@edisonthk
Copy link

Problem

UTF-8 Translation #90 by guiguidu31300 method using imap_utf8() to decode utf-8 subject. However, this approach can only solve single lines subject and unable to decode following "multiple lines subject".

Subject: =?UTF-8?B?UmU6IOOBiuWVj+OBhOWQiOOCj+OBm++8muODquOCr+ODq+ODvOODiOOBq+OBpOOBhOOBpg==?=
    =?UTF-8?B?44Gr44Gk44GE44Gm?=

Solution

Decode utf-8 subject by imap_mime_header_decode() instead of imap_utf8()

@coveralls
Copy link

Coverage Status

Coverage increased (+0.19%) when pulling fbfd17f on edisonthk:master into 501d5d0 on tedious:master.

@tedivm
Copy link
Member

tedivm commented Aug 2, 2015

Can you rebase?

@linniksa
Copy link
Contributor

linniksa commented Aug 4, 2015

imap_mime_header_decode() return text in original encoding, you must use iconv to convert text to utf8.
also parts can be in diffirent encodings

@tedivm
Copy link
Member

tedivm commented Aug 5, 2015

Closed in favor of #147.

@tedivm tedivm closed this Aug 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants