I've a lot of .eml files and need to parse them. I'm using mime4j version 0.6.1 and wanna to update to version 0.7.2, but cannot find any good sample.
I read post apache mime4j maven dependency for 0.7.2 and it helped me to get right maven dependency. But it's still a lot of problems with new methods. For example in version 6 class Multipart
got method getBodyParts
and return List<BodyPart>
, and now it returs List<Entity>
.
Does anyone have good example how to parse SMTP (eml) email with mime4j 0.7.2?
Asked
Active
Viewed 748 times
0

Yuliia Ashomok
- 8,336
- 2
- 60
- 69

rado
- 95
- 1
- 11
-
What about https://james.apache.org/mime4j/samples.html ? It should have fresh samples in distribution pack. – Yuliia Ashomok May 29 '15 at 14:11
-
Of cause I saw this. If you so smart please give me example. How you convert Entity to BodyPart, because I got java.lang.UnsupportedOperationException – rado May 29 '15 at 14:24