 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kim Pedersen Guest
|
Posted: Sat Jan 29, 2005 12:23 pm Post subject: Indy 10 , idMessage and MIME ?? |
|
|
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)
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
|
Posted: Sat Jan 29, 2005 11:08 pm Post subject: Re: Indy 10 , idMessage and MIME ?? |
|
|
"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)
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
|
Posted: Wed Feb 02, 2005 2:18 pm Post subject: Re: Indy 10 , idMessage and MIME ?? |
|
|
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)
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 |
|
 |
|
|
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
|
|