Class IMAPExportMbox
Usage: IMAPExportMbox imap[s]://user:password@host[:port]/folder/path
An example sequence-set might be:
Some example item-names might be:
Macro names cannot be combined with anything else; they must be used alone.
The sequence-set is passed unmodified to the FETCH command.
Note that using BODY will set the \Seen flag. This is why the default uses BODY.PEEK[].
The item name X-GM-LABELS is a Google Mail extension; it shows the labels for a message.
For example:
IMAPExportMbox imaps://username:password@imap.googlemail.com/messages_for_export exported.mbox 1:10,20
IMAPExportMbox imaps://username:password@imap.googlemail.com/messages_for_export exported.mbox 3 ENVELOPE X-GM-LABELS
The item names are wrapped in parentheses if more than one is provided.
Otherwise, the parameter is assumed to be wrapped if necessary.
Parameters with spaces must be quoted otherwise the OS shell will normally treat them as separate parameters.
Also the listener that writes the mailbox only captures the multi-line responses (e.g. ones that include BODY references).
It does not capture the output from FETCH commands using item names such as ENVELOPE or FLAGS that return a single line response.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final String
private static final String
private static final String
private static final Pattern
private static final Pattern
private static final Pattern
private static final int
private static final Pattern
private static final int
private static final Pattern
private static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CRLF
- See Also:
-
LF
- See Also:
-
EOL_DEFAULT
-
PATFROM
-
PATID
-
PATID_DATE_GROUP
private static final int PATID_DATE_GROUP- See Also:
-
PATSEQ
-
PATSEQ_SEQUENCE_GROUP
private static final int PATSEQ_SEQUENCE_GROUP- See Also:
-
PATEXISTS
-
PATTEMPFAIL
-
CONNECT_TIMEOUT
private static final int CONNECT_TIMEOUT- See Also:
-
READ_TIMEOUT
private static final int READ_TIMEOUT- See Also:
-
-
Constructor Details
-
IMAPExportMbox
public IMAPExportMbox()
-
-
Method Details
-
main
- Throws:
IOException
URISyntaxException
-
startsWith
-
matches
-