Find-Email
Command Description
Specify the search keyword and retrieve the mail title to get the corresponding mail. An array will be returned. Each item in the array is a mail message object
Command Prototype
arrayRet = IMAP.SearchMail(objIMAP,sCharset,sFolder,sSubject)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
objIMAP | True | expression | objIMAP | The controllable connection object returned by the "connect mailbox" command |
sCharset | True | string | "gb2312" | Set character set |
sFolder | True | string | "Inbox" | Retrived mail folder |
sSubject | True | string | "" | Search keyword |
return
arrayRet,The variable used to save the output of the command.
Demo
arrayRet = IMAP.SearchMail(objIMAP,"gb2312","Inbox","aliyun")
// [{"":""},{"":""},{"":""}] returns a list of mail attribute dictionaries