public class MailProcessor extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
FROM_PREFIX |
static Pattern |
REFS_PREFIX |
static Pattern |
SUBJECT_PREFIX |
static Pattern |
TO_PREFIX |
Constructor and Description |
---|
MailProcessor(MailOptions options,
String prefix,
ChunkedWriter writer)
This is the main constructor of
MailProcessor . |
MailProcessor(MailOptions options,
String prefix,
Writer writer)
Creates a
MailProcessor that does not write to sequence files, but to a single text file. |
Modifier and Type | Method and Description |
---|---|
protected static String |
generateKey(File mboxFile,
String prefix,
String messageId) |
MailOptions |
getOptions() |
String |
getPrefix() |
long |
parseMboxLineByLine(File mboxFile)
Parses one complete mail archive, writing output to the
writer constructor parameter. |
public static final Pattern SUBJECT_PREFIX
public static final Pattern FROM_PREFIX
public static final Pattern REFS_PREFIX
public static final Pattern TO_PREFIX
public MailProcessor(MailOptions options, String prefix, Writer writer)
MailProcessor
that does not write to sequence files, but to a single text file.
This constructor is for debugging and testing purposes.public MailProcessor(MailOptions options, String prefix, ChunkedWriter writer)
MailProcessor
.public long parseMboxLineByLine(File mboxFile) throws IOException
writer
constructor parameter.mboxFile
- mail archive to parseIOException
public String getPrefix()
public MailOptions getOptions()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.