Arno,

I tried to use TMimeDecodeW, but it won't change its behaviour regarding the 
encoded subject. So I guess I've to decode it separately from the mail, as soon 
as I detect 'iso-8859-1' in the subject line.

I have another question and I hope someone can help me. I couldn't find useful 
information yet.

I have to retrieve mails via POP3 (currently working!) and decode its textual 
part, which is then parsed and written to a file. I can see that some multipart 
messages have a text/plain part, but some others just have several 
multipart/alternative parts. So I firstly have to find which part to decode and 
secondly to find how to write just that part to a memory stream and/or file.

A (simple) sample which addresses multipart messages would be fine ;)

Thanks,
Michael

-----Original Message-----
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On 
Behalf Of Arno Garrels
Sent: Tuesday, November 17, 2009 11:16 AM
To: ICS support mailing
Subject: Re: [twsocket] Can't compile ICS V6

Kochendoerfer, Michael wrote:
> Arno,
>
> please ignore my last mail - V7 installed without problems. Thanks
> for the hint!!
>
> One of the reasons for my update was a problem with the TMimeDecode
> component, but I guess V7 doesn't behave different here. I have a
> POP3 mail which has a subject like this:
>
> =?iso-8859-1?Q?FW:_Newsletter_-_Gr=FCn_ist_f=FCr_Sie!?=
>
> And I need to get a plain text subject from that. I thought that in
> OnMessageEnd the .Subject is changed to plain text, but it is not. So
> I need to find a reliable way to detect and convert such subjects
> into plain text. And I'm quite sure that V7 has an option for it. I
> just can't find it ;)

Have a look at the new TMimeDecodeW, it decodes those inline encoded
strings to WideString/UnicodeString.
Display with non-Unicode compilers will only work reliable if the
charset matches system's default ansi charset.
"iso-8859-1" will display fine with windows-1252 except for the EURO
sign. Or use the TNT-Unicode components mentioned in OverbyteIcsMimeDemo.

--
Arno Garrels


>
> Michael
>
> -----Original Message-----
> From: twsocket-boun...@elists.org
> [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels
> Sent: Tuesday, November 17, 2009 10:41 AM
> To: ICS support mailing
> Subject: Re: [twsocket] Can't compile ICS V6
>
> Kochendoerfer, Michael wrote:
>> Hi,
>>
>> I recently downloaded ICS V6 package from overbyte.be and now I'm
>> trying to install it according to the readme file. However, I can't
>> compile it because the compiler gives an error about an unknown
>> _IntToStr (note the underscore) in OverbyteIcsHttpSrv.
>>
>> I'm on D7. What did I miss?
>
> This is fixed in latest snapshot downloadable at:
> http://wiki.overbyte.be/wiki/index.php/FAQ#How_to_get_ICS
>
> or simply exchange "_IntToStr" by "IntToStr".
>
> Why don't you use ICS-V7?
>
> --
> Arno Garrels
>
>>
>> TIA,
>> Michael
>>
>>
>> Legal Notice:
>>
>> HEM Vertriebs GmbH
>> Haller Strasse 30
>> D-74523 Schwaebisch Hall
>> Fon: +49-791-4079-0
>> Fax: +49-791-4079-80
>>
>> http://www.hem.de   email: i...@hem.de
>>
>> Rechtsform : HEM Vertriebs GmbH
>> Handelsregister : Stuttgart HRB 570346
>> Steuernummer: 84060/00397 UST-ID DE256870483
>> Sitz der Gesellschaft : Schwäbisch Hall
>> Geschaeftsfuehrer: Gunter Schaaf, Rene Schaaf
>>
>>
>>
>>
>>
>>> --
>>> To unsubscribe or change your settings for TWSocket mailing list
>>> please goto
>>> http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our
>>> website at http://www.overbyte.be
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>
>
> Legal Notice:
>
> HEM Vertriebs GmbH
> Haller Strasse 30
> D-74523 Schwaebisch Hall
> Fon: +49-791-4079-0
> Fax: +49-791-4079-80
>
> http://www.hem.de   email: i...@hem.de
>
> Rechtsform : HEM Vertriebs GmbH
> Handelsregister : Stuttgart HRB 570346
> Steuernummer: 84060/00397 UST-ID DE256870483
> Sitz der Gesellschaft : Schwäbisch Hall
> Geschaeftsfuehrer: Gunter Schaaf, Rene Schaaf
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Legal Notice: 

HEM Vertriebs GmbH
Haller Strasse 30
D-74523 Schwaebisch Hall
Fon: +49-791-4079-0
Fax: +49-791-4079-80 

http://www.hem.de   email: i...@hem.de

Rechtsform : HEM Vertriebs GmbH
Handelsregister : Stuttgart HRB 570346
Steuernummer: 84060/00397 UST-ID DE256870483
Sitz der Gesellschaft : Schwäbisch Hall
Geschaeftsfuehrer: Gunter Schaaf, Rene Schaaf

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to