1

I downloaded the binaries of the latest stable version of apache-mime4j (0.7.2).

Yet, I fail to compile the next code since MboxIterator & CharBufferWrapper classes are not found.

final File mbox = new File("path/name.mbox");
for (CharBufferWrapper message : MboxIterator.fromFile(mbox).charset(ENCODER.charset()).build()) 
{do something}

The jars included in my build path: apache-mime4j-core-0.7.2.jar, apache-mime4j-dom-0.7.2.jar.

Am I using the wrong jars or version?

zvisofer
  • 1,346
  • 18
  • 41

2 Answers2

0

I had the same problem but I ended getting it to work by doing a little research.

The classes you mention, at least by what I found, are not included into Mime4J, so you have to code them yourself. Thanks to the devs, they got them uploaded in the following link: MBoxIterator needed classes.

Hope those solve the problem.

tontonton
  • 61
  • 1
  • 6
0

You can clone the current snaphshot of the mime4j project from

to your personal github account

or use my clone:

and your MBoxIterator is here:

Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186