Integer RefreshFolder(NSEMailConnectionInfo connectionInfo, String folders)
Refresh the given folders - i.e., fetch data from the mail server and update the in-database cache. This may happen synchronously or as a batch task, the return value will be 0 if the processing was synchronous, or the batch task id if a batch task is used.
- connectionInfo Email connection info credentials
- folders List of folder names to refresh
NSEMailAgent agent; NSEMailConnectionInfo connectionInfo; String folders; Integer res = agent.RefreshFolder(connectionInfo, folders);