How to extract attachment using Mime4j 0.7.2

500 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 best solutions below

0
On

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