Example: imap_expunge_ex
In the following example, the imap_expunge_ex function deletes messages 15, 17, and 20 through 40.
//Delete all messages marked with the /Delete flag
imap_expunge_ex(&imap1,"DeleteMarkedMail", LAST );
//Delete specific messages
imap_expunge_ex(*imap1,"DeleteSpecificMail", "Message=15", "Message=17", "Message=20:40", LAST );