TIdMessage decoding issue [Edit] |
|
Re: TIdMessage decoding issue [Edit] |
|
Re: TIdMessage decoding issue [Edit] |
|
John wrote:
> This message will not decode properly in TIdMessage:
Correct, because it is malformed, per RFC 2045 Section 6.4:
{quote}
If an entity is of type "multipart" the Content-Transfer-Encoding is not
permitted to have any value other than "7bit", "8bit" or "binary".
{quote}
And:
{quote}
Any entity with an unrecognized Content-Transfer-Encoding must be treated
as if it has a Content-Type of "application/octet-stream", regardless of
what the Content-Type header field actually says.
{quote}
> However if I remove Content-Transfer-Encoding from the header it will:
Correct. And the MIME spec is clear about being careful with the "Content-Transfer-Encoding"
header, especially in relation to "multipart" entities. A "Content-Transfer-Encoding"
applies to an entity's entire content - including nested "multipart" entities.
> It used to work in the previous version of Indy (cannot tell which
> one though).
The logic was changed earlier this year in SVN revision 5128, in response
to another email that was similarly malformed. I have just now checked in
some additional changes.
--
Remy Lebeau (TeamB)
|