On 10/15/2013 8:50 AM, Lukas Gebauer wrote: >> can you provide a working example of using walkpart to actually walk a >> multipart email, please? the examples are much too simplistic... >> especially the FPC one which simply decodes and the re-encodes the >> same part without doing anything... > > What is hard on walkpart? It is good when you need to enumerate all > parts of message. (for example, for antivirus/antispam checks).
yes, i need to enumerate all parts of messages to extract their contents to plain ASCII text files for posting via another medium... i already have code that parses utf-8 and quoted-printable bytes into their CP437 representations but i just can't get walking thru all parts... i've done my own but it fails quite spectacularly when there are parts within parts... i've been trying to work this out for a several months and just have not been successful at all :/ > It simply walk through MIME part structure in message and fire event > for each TMimePart. Inside event you can emumerate TMimePart > properties and do what you need. i don't do events... i don't know how... my app is pure command line console mode and is called by the SMTP server when specific emails are received... > For implementing GUI is better another way - see the Mime demo (for > Delphi, but it is very easy!) i don't do GUI, either... not yet, at least... -- NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public