Searches a mailbox for messages placing the search results in the file specified by the searchFile parameter
Namespace: Ipswitch.Messaging.Framework.Mail
Assembly: Ipswitch.Messaging.Framework (in Ipswitch.Messaging.Framework.dll) Version: 1.0.0.0
Syntax
public void Search( string searchPattern, string searchFile, string charset, int maxResponses, int startingIndex )
Parameters
- searchPattern
- Type: SystemString
The IMAP search pattern - searchFile
- Type: SystemString
The file to place the search results - charset
- Type: SystemString
The charset to search in - maxResponses
- Type: SystemInt32
The maximum number of responses - startingIndex
- Type: SystemInt32
The message index to begin the search
Exceptions
Exception | Condition |
---|---|
FolderAccessException | Thrown when reading items in the folder is not allowed. |
See Also