Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jan : Re: Message parts problem D&/indy 10.0.52

www.cryer.info
Managed Newsgroup Archive

Re: Message parts problem D&/indy 10.0.52

Subject:Re: Message parts problem D&/indy 10.0.52
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Mon, 30 Jan 2006 00:07:43

"Jacques" <jacques.noah@btinternet.com> wrote in message
news:43dce51e$1@newsgroups.borland.com...

> i've figured out away to solve this. All i did was to search
> for '<HTML' or '<html>' in the msg body text

That is not a very effective way to handle it.  You have to look at the
ContentType in order to interpret Body contents properly.  If you are able
to find TIdText instances that contain <HTML> tags, then you have to be able
to find instances that have ContentType values of "text/html" as well.

> first download the msg, get the text part of it, search for the term
'html',
> if the term exist then create a textfile and put the text part of the
> message in, then change file extention to 'html' and navigate the
> browser(included in the app) to it.

You do not need a file for that.  You can load the browser using a memory
block instead.  Look at the IPersistStreamInit interface.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive