ContentType of email attachments / Indy
Hi,
I'm using the INDY component library (Version 9.0.2 Beta) to write a pop3
client with Borland C++ Builder 5.
All works well, but 1 thing doesn't:
When i retrieve an email with 1 binary attachment encoded, i cannot query
the attachment encoding scheme.
I do the following in my code:
IdPOP31->Retrieve(1, Mail);
Mail->GenerateHeader();
Mail->ProcessHeaders();
Mail->MessageParts->CountParts();
Memo1->Lines->Add(Mail->MessageParts->Items[1]->ContentType);
The Memo1 stays empty.
In my test, i'm using a test-email that looks like this:
...
...
Subject: test
Mime-Version: 1.0
Content-Type: multipart/mixed;
boundary="=====================_14804037==_"
Status: RO
--=====================_14804037==_
Content-Type: text/plain; charset="us-ascii"; format=flowed
this is a test
--=====================_14804037==_
Content-Type: application/mac-binhex40; name="test.zip"
...
...
So i would expect
"Memo1->Lines->Add(Mail->MessageParts->Items[1]->ContentType)" to
give me "application/mac-binhex40" or just "max-binhex40"
Could someone please tell me what I am doing wrong ?
Thanks!
B. Verhallen