> i explained why i didnt use subpart got no response from you
> one sample i had (simple eml inside email), did work with what u said:
> simply take the subpart and show it. BUT, in another sample i had (and u
> said yourself it can be a free tree structure inside that part) it didnt
> work. why? bcoz in the same level of that subpart (where eml information
> was) i had another subpart which was an image, and the image was related
> to the eml part and not the original email itself. if i took only the
> subpart of the eml, i would lose the part with the image, and in other
> cases, mayb lose some more parts on the way.

Kill me, kill me, please, kill me! :-/

There is not any problem! 

Did you know how to handle mail what have multipart and under it is two 
subparts - text and image?

No? - Then begin with teaching here! Without this knowledge you cannot 
continue!

Yes? - well, go to next...

Your message have included another message. This another message have 
multipart and under is two subparts - text and image. Did yio know how to 
handle it?

No?  - Drag your computer, open the window, and drop it!

Yes? - yeah, you know recursion, and you can continue to next programmer 
skills!

Logic of mime parts are very simple, and you very probably still not know 
it. Any place of decoded mime part three can be handled as new message. 
Each subpart is same part as original root part, and any subpart can be 
handled as new root part. It is still same TMimePart instance. So, if you 
have attached mail message, then it can be handled really as new separate 
mail message. You create code for handling of mail messages, and this 
your code can be called recursively for each included mail message. 
Remember, you must to know to handle totally any mime parts structures.

Try to find "MIME torture test" for example of very strange mail message 
with many many parts of various encodings.  This strange message is used 
for test of quality of MIME parsers and mail programs. Did your program 
pass this test? Synapse itself yes!

> in your mimedemo, where u simply go through all parts and show them, it
> works perfect but since, in my case, i want to "hide" for the user all the
> inside parts of the eml part i needed to not go inside that part, until
> the user actually clicks it (i show it to the user as an attachment). so
> what u did in mimedemo, does not fit my needs.

Recursion is solution. Another solution can be demostrated by mimedemo 
too... Click to subpart of attached message. In windows you can see full 
raw encoded attached mail message. Save it to file.. and then try to open 
this saved content by mimedemo... Where is a problem? 

> i wrote that i know its not the right solution (but for now, its the only
> 1 that works) so the dramatic response was unnecessary 

It is like:

You want to drive a car. I give you a car, and you are driving it... but 
without driving license. For a successful driving you must not have just 
a car, you must know to control a car too!


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

Reply via email to