The IMailSearchSettings type exposes the following members.

Properties

  NameDescription
Public propertyCreateFolderForFrom
For every attachment being downloaded, setting this to true would create a directory using the from address of the mail attachment.
Public propertyCreateFolderForMailbox
For every attachment being downloaded, setting this to true would create a directory based on which mail folder the mail attachment was in.
Public propertyDownloadFilesOfType
A bitmask of file types to download. Set to 0 to unset it.
Public propertyDownloadFilesOfTypeOtherList
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.
Public propertyFilenameOrdering
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.
Public propertyMailSearchHeaderSettings
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.
CopyC#
MailSearchSettings[MailSearchHeaderType.MESSAGE_FROM]="GearMage";
Public propertyMaxConnections
Maximum number of parallel connections. Defaults to 8 or however many the server accepts.
Public propertyMoveToFolderOnSuccessfulDownload
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.
Public propertyRootFolder
Gets the root folder once the StartListFolders()()()() is complete. The root folder may contain 0 or more child folders.
Public propertySampleName
Gets a sample name based on FilenameOrdering set.
Public propertySaveAttachmentsInDirectory
The directory (full path) in which attachments are to be saved.
Public propertySearchAllSetting
Searches all mail or only new ones. If true, searches all mail.
Public propertySizeGreaterThan
If set, downloads only size greater than the set size. Set to -1 to unset it.

See Also