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.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IMAPExportMbox
public IMAPExportMbox()
-
-
Method Details
-
main
- Throws:
IOException
URISyntaxException
-