just so i will understand
this file contains 1 big email
the email contains both text part and html part
moreover, this email contains 1 attachment which content is html
and another attachment which is an eml file
this eml file contains an image and another part which is again an email by
itself
there u have 2 parts again
right?
if u say "Message parts can be organized in totally free ttree based structure,
and
you must to know handle it correctly" then how can i handle?
notice that the problem i have is only bcoz i have an eml part (email inside
email)
so i need to "hide" all inner parts of this email. while others samples i had
i simply took the main part from it and it was ok
here it seems that the main part is only a container and not a part of its own
בתאריך 14/02/2007 22:20:41, Lukas Gebauer - [EMAIL PROTECTED] כתב:
> email, it seems to be different. in the MESSAGE part i have 2 parts, the
> eml information and an image (that i dont know where exactly it connected)
> and when i call part.decodepart; (part is now part.getsubpart(0)) in line:
> case FEncodingCode of = the result is: ME7BIT so it executes the line:
> s := FPartBody.Text; FPartBody contains several crlf characters so the
> decoding results with nothing while part.lines.text does contain eml
> format. so i get nothing in result
Because it is not eml imformation and image. See it in my demo again. It
is multipart (1) and image. And this multipart contains two subpartsm,
one with plaintext, second with HTML. Anyou probably trying to decode and
show this multipart, what cannot hold data, just next subparts.
Message parts can be organized in totally free ttree based structure, and
you must to know handle it correctly.
Here you not have simple text part, but multipart/alternative. It
contains various alternative versions of same information, and e-mail
programs usually select one of them, what user wish. I usually want
plaintext version, someone else want to see fancy HTML version...
> mimedemo does take all parts as it should
> but in my case, i want to show the eml part as 1 attachment
> and only if the user double clicks it, i want to open it and show the
> "inside email" content.
Mime demo showing how parts are really organized. ifyou want to hide some
parts before your users, you must handle it in your program.
> im not sure if the file is invalid or am i doing sth wrong
> please advice
Your sample message is valid, I not see any problem here.
--
Lukas Gebauer.
E-mail: [EMAIL PROTECTED]
WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP
Library
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public