Class IMAPExportMbox
Usage: IMAPExportMbox imap[s]://user:password@host[:port]/folder/path
An example sequence-set might be:
Some example item-names might be:
For example:
Note that the sequence-set is passed unmodified to the FETCH command.
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.
It does not capture the output from ENVELOPE commands.
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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Patternprivate static final Patternprivate static final Patternprivate static final intprivate static final Patternprivate static final intprivate static final Patternprivate 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
-
startsWith
-
matches
-