Hi all,
Using Indy, I have a TIdMessage with a Subject property that equals
[tt]
** SPAM ** =?gb2312?B?UmU6ICjI8NDHzOHKvi20y9PKvP6/ycTcysfArLv408q8/ik2MDE5TSBhbmQgNjAxOE0=?=
[/tt]
Outlook 2003 displays this message's subject as
[tt]
** SPAM ** Re: (????-??????????)6019M and 6018M
[/tt]
but displays the garbled subject when you examine the headers for the message.
As far as I can tell, the =? and ?= surrounds indicate MIME encoding, but when I try running a decoder over it, it comes out with gibberish. And shouldn't TIdMessage do the decoding automatically?
I'm getting the message using a TIdIMAP4 component and TIdIMAP4.UIDRetrieveHeaders, then streaming the TIdMessage via TCP to another program that then outputs the TIdMessage.Subject property. I'm going to keep tinkering with different things but can anyone give me a hand?
Using Indy, I have a TIdMessage with a Subject property that equals
[tt]
** SPAM ** =?gb2312?B?UmU6ICjI8NDHzOHKvi20y9PKvP6/ycTcysfArLv408q8/ik2MDE5TSBhbmQgNjAxOE0=?=
[/tt]
Outlook 2003 displays this message's subject as
[tt]
** SPAM ** Re: (????-??????????)6019M and 6018M
[/tt]
but displays the garbled subject when you examine the headers for the message.
As far as I can tell, the =? and ?= surrounds indicate MIME encoding, but when I try running a decoder over it, it comes out with gibberish. And shouldn't TIdMessage do the decoding automatically?
I'm getting the message using a TIdIMAP4 component and TIdIMAP4.UIDRetrieveHeaders, then streaming the TIdMessage via TCP to another program that then outputs the TIdMessage.Subject property. I'm going to keep tinkering with different things but can anyone give me a hand?