public final class StoreCommand extends Object
| Constructor and Description |
|---|
StoreCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
store(MailboxConnection connection,
String folderName,
String localDirectory,
String fileName,
long uid,
boolean overwrite)
Stores the specified email of uid
emailId into the configured localDirectory. |
public void store(MailboxConnection connection, String folderName, String localDirectory, String fileName, long uid, boolean overwrite)
emailId into the configured localDirectory.
The emails are stored as mime message in a ".txt" format.
The name of the email file is composed by the subject and the received date of the email.
connection - the associated MailboxConnection.folderName - the name of the folder where the email(s) is going to be fetched.localDirectory - the localDirectory where the emails are going to be stored.fileName - the name of the file that is going to be stored.
The operation will append the email number and received date in the end.uid - the unique identifier of the email to be stored.overwrite - if should overwrite a file that already exist or not.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.