hi
what i mean was:
i had a sample that when reaching a MESSAGE part
it was enough to take part.getsubpart(0); 
and use its content (body) as the new email (that is inside the email)

but in this sample, its not like that,
so even if i will eventually "catch" where the actual eml information is
stored
it wont work in other cases. as u said, the tree can be organized in
infinite options.

so is there a general way i can do to always catch the email inside an
email?

mimedemo simply goes through all parts and show them and it does the job
good
but my problem is, once i encounter a MESSAGE part, i want to hide the
inner parts
to the user, until he clicks it in order to view it

Original Message:
-----------------
From: Lukas Gebauer [EMAIL PROTECTED]
Date: Wed, 14 Feb 2007 21:20:41 +0100
To: [email protected]
Subject: Re: [Synalist] what's wrong here?


> 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

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://link.mail2web.com/mail2web



-------------------------------------------------------------------------
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

Reply via email to