Quantcast
Channel: Planet Apache
Viewing all articles
Browse latest Browse all 9364

Ioan Eugen Stan: java mbox parsing with Apache James Mime4j

$
0
0
Today I just made a small push to Apache James Mim4j trunk. The change-set adds mbox parsing capabilities to mime4j. It's a one class Iterator that you can use to split an mbox file into individual messages and after this parse them with mime4j.

I also added an simple example here.

This is how you can use it:

for (CharBufferWrapper message : MboxIterator.fromFile(mbox).charset(ENCODER.charset()).build()) {
System.out.println(messageSummary(message.asInputStream(ENCODER.charset())));
count++;
}



Viewing all articles
Browse latest Browse all 9364

Trending Articles