You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by "Sharma, Ashish" <as...@hp.com> on 2010/04/20 15:54:31 UTC

Email attachment parsing via mime4j

Hi,

I am using a small java smtp library (http://code.google.com/p/subethasmtp/), by this I need to parse the incoming emails in separate components viz body, attachments etc.

I am trying to use mime4j , but the documentation suggests that mime4j can only give  event notification or  token notification and nothing else. For stripping out body and attachments etc I had to use my own custom logic inside the event handlers. Is my observation correct?

If yes then how can I use mime4j to use for my requirement. Please suggest.

I badly need an approach that takes in the smtp data stream and returns me with an array of attachment references or streams in fully parsed out form in java. Please help

Thanks in advance

Ashish Sharma

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org