The IMailSearchSettings type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| CreateFolderForFrom |
For every attachment being downloaded, setting this to true would create a directory using the from address of the mail attachment.
| |
| CreateFolderForMailbox |
For every attachment being downloaded, setting this to true would create a directory based on which mail folder the mail attachment was in.
| |
| DownloadFilesOfType |
A bitmask of file types to download.
Set to 0 to unset it.
| |
| DownloadFilesOfTypeOtherList |
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.
| |
| FilenameOrdering |
An ordered list of Fields that will then be used to construct the name. See SampleName to get a sample of the name.
This could've alternatively be specified as a regex. If the regex based functionality is something you'll find useful, let us know support@gearmage.com.
| |
| MailSearchHeaderSettings |
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. MailSearchSettings[MailSearchHeaderType.MESSAGE_FROM]="GearMage"; | |
| MaxConnections |
Maximum number of parallel connections. Defaults to 8 or however many the server accepts.
| |
| MoveToFolderOnSuccessfulDownload |
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.
| |
| RootFolder |
Gets the root folder once the StartListFolders()()()() is complete. The root folder may contain 0 or more child folders.
| |
| SampleName |
Gets a sample name based on FilenameOrdering set.
| |
| SaveAttachmentsInDirectory |
The directory (full path) in which attachments are to be saved.
| |
| SearchAllSetting |
Searches all mail or only new ones. If true, searches all mail.
| |
| SizeGreaterThan |
If set, downloads only size greater than the set size. Set to -1 to unset it.
|