Class IterateOverMbox
java.lang.Object
org.apache.james.mime4j.samples.mbox.IterateOverMbox
Simple example of how to use Apache Mime4j Mbox Iterator. We split one mbox file file into
individual email messages.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate static StringmessageSummary(InputStream messageBytes) Parse a message and return a simpleStringrepresentation of some important fields.private static StringretrieveMBoxFileName(String[] args) private static voidsaveMessageToFile(int count, CharBuffer buf)
-
Field Details
-
ENCODER
-
-
Constructor Details
-
IterateOverMbox
public IterateOverMbox()
-
-
Method Details
-
main
-
retrieveMBoxFileName
-
saveMessageToFile
- Throws:
IOException
-
messageSummary
Parse a message and return a simpleStringrepresentation of some important fields.- Parameters:
messageBytes- the message asInputStream- Returns:
- String
- Throws:
IOExceptionMimeException
-