Example: imap_search
In the following example, the imap_search function searches for messages that have the \\FLAG tag, that were modified since 1-FEB-1994, and contain Smith in the From field. It saves these messages to Param1.
imap_search("SearchForSmith", "Search=FLAGGED SINCE 1-FEB-1994 FROM \"Smith\"", "SaveTo=Param1",ENDITEM LAST );