Email attachment, body parsing via JavaMail api
839318Feb 13 2011 — edited Feb 13 2011Hi,
I am using a small java smtp library (http://code.google.com/p/subethasmtp/), receiving mails with an email receiving Postfix server. By this setup I need to parse the incoming emails in separate file components viz body, attachments etc.
I need to create an approach that takes in the smtp data stream and returns me with an array of attachment references and body references or streams in fully parsed out form in java.
Since I am a newbie can somebody guide me how can this be done using JavaMail api. (Please post relevant examples if possible)
Thanks in advance
Ashish Sharma