How to extract attachment using Mime4j 0.7.2

468 views Asked by At

Can anybody help in pointing me to some code to extract attachments from Multipart Mime using Mime4j? I couldn't find any, I need it for Mime4j 0.7.2(latest). I am trying to process attachments from James Hook/Mailets.

1

There are 1 answers

0
Sathish Kumar On

Ok, found the answer, just have to loop parts.get(i).readOnce() or read().