IndyのMessagePartパーサーをスローするように見えるこの特定の種類のAmazonメッセージがあります。
メッセージは次のように構成されています(もちろん、大幅に要約されたバージョン)。
Content-Type: multipart/mixed;
boundary="----=_Part_853547_18414509.1354745829993"
<some irrelevant header stuff>
------=_Part_853547_18414509.1354745829993
Content-Type: multipart/alternative;
boundary="----=_Part_853548_20128671.1354745829993"
------=_Part_853548_20128671.1354745829993
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<the message in plain text>
------=_Part_853548_20128671.1354745829993
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<the message in HTML>
------=_Part_853548_20128671.1354745829993--
------=_Part_853547_18414509.1354745829993--
今、私が実行すると
imap.UIDRetrieve(UID,Msg)
それから
Msg.ContentType = "multipart/mixed"
そして個人Msg.MessageParts
はこれをコンテンツタイプとして持っています:
Msg.MessageParts[0].ContentType = "multipart/alternative; boundary="----=_Part_853548_20128671.1354745829993""
Msg.MessageParts[1].ContentType = "text/plain"
部品の痕跡はありませんtext/html
。
誰かがここで何が起こっているのか分かりますか?
(最新のIndyビルドを使用しています)