Skip to content

TIdMessage cannot decode the body of an email that uses cp1026 #304

@GoogleCodeExporter

Description

@GoogleCodeExporter
TIdMessage cannot decode the following email because charset cp1026 causes 
TIdIOHandler.ReadLn() to return string values that are not consistent with the 
email RFCs for syntax elements like LFs and the CRLF.CRLF terminator, likely 
because it is an EBCDIC based encoding.  Indy's parser needs to stop using the 
email's charset when processing RFC-defined syntax elements.


Subject: abc, =?UTF-8?B?TmVl?= =?UTF-8?B?ZCBDYQ==?= =?UTF-8?B?c2ggUXU=?= 
=?UTF-8?B?aWNrIEdl?= =?UTF-8?B?dCB1cHRvIFVT?= =?UTF-8?B?RDEw?= 
=?UTF-8?B?MDAgTm8=?= =?UTF-8?B?dw==?=
From: =?UTF-8?B?TmU=?= =?UTF-8?B?eHRQ?= =?UTF-8?B?YXlk?= =?UTF-8?B?YXlBZHY=?= 
=?UTF-8?B?YW5j?= =?UTF-8?B?ZQ==?= <abc@def.com>
To: "549b69b9a719d"abc@def.com.
Content-Type: text/html; charset= CP1026

msg content


Original issue reported on code.google.com by gambit47 on 2 Jan 2015 at 10:07

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions