BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Indy 10 , idMessage and MIME ??

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Kim Pedersen
Guest





PostPosted: Sat Jan 29, 2005 12:23 pm    Post subject: Indy 10 , idMessage and MIME ?? Reply with quote



Hello

I try to make a simple mail reader with indy 10 where I can show the
mail in a html browser and extract the attachments...


I dont quite understand how come over the MIME decoding ??

the Best solution :

I would Like a kind of component(or code) Smile
the component should take care of all the decoding supported by indy .

idmessage - > the plain text , if any
- > the text/html to show for the user ,if any
- > the attachements ,if any


any hint would be very welcome :)

TIA
Kim Pedersen
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sat Jan 29, 2005 11:08 pm    Post subject: Re: Indy 10 , idMessage and MIME ?? Reply with quote




"Kim Pedersen" <kim (AT) elprint (DOT) com> wrote


Quote:
I dont quite understand how come over the MIME decoding ??

Everything is decoded into the MessageParts property. Simply loop through
the collection looking for TIdText and TIdAttachment instances. In the case
of TIdText, you can look at its ContentType property to know whether it
contains plain text or HTML.

Quote:
I would Like a kind of component(or code) Smile
the component should take care of all the decoding supported by indy .

idmessage - > the plain text , if any
- > the text/html to show for the user ,if any
- > the attachements ,if any

TIdMessage already does exactly what you are asking for.


Gambit



Back to top
Kim Pedersen
Guest





PostPosted: Wed Feb 02, 2005 2:18 pm    Post subject: Re: Indy 10 , idMessage and MIME ?? Reply with quote



Remy Lebeau (TeamB) wrote:
Hello
Thanks for your answer ,,,works nicely

My problem came because I did save the message to file with indy 9 (and load with indy10
), and it seems that
indy 9 did not handle that very well(most of the content in messagepart was gone) when
I did look in the raw file on disk.

After switching all to indy , it works like a nicely :)

regards
Kim


Quote:
"Kim Pedersen" <kim (AT) elprint (DOT) com> wrote in message
news:41fb8049$1 (AT) newsgroups (DOT) borland.com...


I dont quite understand how come over the MIME decoding ??


Everything is decoded into the MessageParts property. Simply loop through
the collection looking for TIdText and TIdAttachment instances. In the case
of TIdText, you can look at its ContentType property to know whether it
contains plain text or HTML.


I would Like a kind of component(or code) Smile
the component should take care of all the decoding supported by indy .

idmessage - > the plain text , if any
- > the text/html to show for the user ,if any
- > the attachements ,if any


TIdMessage already does exactly what you are asking for.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.