Article View: borland.public.cppbuilder.internet.socket
Article #2986Re: Get message contents as plain text
From: Peter Evans
Date: Mon, 05 Dec 2005 15:24
Date: Mon, 05 Dec 2005 15:24
22 lines
2000 bytes
2000 bytes
Paulo, I can't speak for the Indy 9 component, but when using NetMaster's C++ equivalent the content of the email can be extracted into a String buffer. Emails in HTML will have different parts to them, one of which is an ascii text part representing the content of the email, but without tags. You will be able to identify this in the buffer and so process it. Yes, it's not Indy, but maybe the method carries over. Hope it helps. Best regards, Peter Evans, PS. Are you using Delphi or C++? "Paulo Tesche" wrote in message news:43944285@newsgroups.borland.com... > I�m using Indy 9 and I need to get the messages contents as plain text to > search for specific information. > I�m using TIdPOP3 to get the TIdMessage�s. > The messages are sent with Microsoft Outlook, so they come in either plain > tex, HTML or RTF format. > If they are received in HTML ou RTF, how can I convert it to plain text? >
Technical Details
Message-ID:
<43945b7a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43944285@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f67b0f781468066f X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII Reply-To: "Peter Evans" <peter-evans@pelcaro.com> From: "Peter Evans" <peter-evans@pelcaro.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <43944285@newsgroups.borland.com> Subject: Re: Get message contents as plain text Date: Mon, 5 Dec 2005 15:24:28 -0000 Lines: 24 Organization: - X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 217.158.9.102 Message-ID: <43945b7a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1133796218 217.158.9.102 (5 Dec 2005 07:23:38 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail