Amos wrote: >> simply discard the attachments. > > what kind of a solution is that? :)
An easy one :) When we don't know how to handle something, we don't :) > the attachments are needed You could do like outlook (express?) and some other clients do; invent a name yourself and have it use a suitable generic extension (like .dat for "this is data, but we have no idea what the heck it is"). The problem is that all systems that can send mail don't even have the concept of "a filename". Of course, the example file you provided had no such problem :) The only problem appears to be that you're not correctly handling multipart messages. I expanded one of my old test applications with a few lines of code so that it gets all the parts of the message you provided and saves them into files. You can find it at http://www.disconova.com/open_source/files/multipart_mail_test.src.zip ... I tested that it compiles with at least Delphi 7 and Delphi 2006 without modifications required. I would be the first to point out that it doesn't really go through the email recursively, but it handles many messages quite nicely. Hope this helps. -- Markku Uttula ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
