The IMailSearchSettings type exposes the following members.
For every attachment being downloaded, setting this to true would create a directory using the from address of the mail attachment.
For every attachment being downloaded, setting this to true would create a directory based on which mail folder the mail attachment was in.
A bitmask of file types to download. Set to 0 to unset it.
A collection of extension (strings) of the format ".ext" where ext is the extension that can contain any number of characters in it. Add as many as you want to include in the download. It can also include wildcards, if need be. Clear the list to unset it.
An array of mail search settings indexed by MailSearchHeaderType.
The following example illustrates setting the from such that messages that contain attachments from "GearMage" will be downloaded.
Maximum number of parallel connections. Defaults to 8 or however many the server accepts.
Specify the raw folder path separated by '/' to which messages that have been succesfully downloaded needs to be moved to. Example: "INBOX/bar" where bar is a sub folder of folder INBOX.
Gets the root folder once the StartListFolders()()()() is complete. The root folder may contain 0 or more child folders.
Gets a sample name based on FilenameOrdering set.
The directory (full path) in which attachments are to be saved.
Searches all mail or only new ones. If true, searches all mail.
If set, downloads only size greater than the set size. Set to -1 to unset it.