Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get Outllok Express Info

Status
Not open for further replies.

tomik2476

Programmer
May 19, 2008
7
CZ
I want to drag an email message from Outlok Express onto my application, drop it on some component (listbox) and this should create a file on local harddisk named by the subject of the email, for example "Hello everybody.eml".

I've already managed to do this with email from Outlook (.msg files), and I'm able to save even this .eml into file. I just don't know how to read the subject from the incoming data. I'm using ActiveX.IDataObject for getting the dropped email, I've got the solution from

<
Any suggestions highly appreciated. ;)
 
Maybe I should better specify my question. I don't need help with dragging n dropping email. All I want to do now is get one string from one file: subject from saved .eml file.
This file is simple text file. But there is some problem with non-ASCII characters: if there are any, the whole section is converted into something which looks like:
=?iso-8859-2?B?duFub+hu7SB2ZejtcmVr?=

Now after searching the net I realized this is some base64 or quoted-printable conversion... (I'm not expert on this.)

So my problem now: Is there a way to put this string
"=?iso-8859-2?B?duFub+hu7SB2ZejtcmVr?="
as an argument into function and get the original string?
(the original is: "váno?ní ve?írek")

Till now I've tried IdCoder3To4.TIdBase64Decoder,
IdCoderText.TIdQuotedPrintableDecoder,
IdCoderIMF.TIdIMFDecoder
...
which all have CodeString method. The last two ones return empty string, TIDBase64Decoder ends with error that it needs some coding entry table specified, which I don't know how to specify. There really isn't much help to be found about these things.

Any help still greatly welcomed.
 
I've already got the solution - apply jclmime.mimedecodestring
function on the encoded string.

Thanks anyway,
T.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top