Skip to main content
Participating Frequently
May 8, 2010
Question

How do you read nested attachments in emails or parse .eml files?

  • May 8, 2010
  • 1 reply
  • 827 views

Hi there

1. I have .eml files on my disk which I am looking to parse for the attachments using CF.  I am able to read the files as text, but I am actually trying to devise a technique of getting hold of the attachments, which may be .eml, doc, jpg and anything else.  CFIMAP and other email/communication tags do not seem to allow me to do this.

2. Alternately, is there a way to get hold of an attachment (say a Word file) which is within an email attachment of an email (you might call it a nested attachment).

Any assistance would be appreciated.

Regards

Boon

This topic has been closed for replies.

1 reply

Inspiring
May 9, 2010

You could do this by tapping into javamail. I am coming up blank at the moment. But I am relatively certain there are some existing cfc's out there that use javamail.

http://java.sun.com/products/javamail/FAQ.html