Example: imap_expunge_exInternet Messaging Functions (IMAP)

Deletes messages from a mailbox for a specific session.

int imap_expunge_ex( IMAP *ppimap, char *transaction, char *method, [char *message,] LAST );
ppimap A session identifier.
transactionA transaction name for this step in quotes. To avoid creating a transaction for this step, use a null string, "".
method The deletion method: DeleteMarkedMail or DeleteSpecificMail
messageThe message number or range of messages to delete. This only applies for the DeleteSpecificMail method. Use the following format:
"Message=message_number | begin:end "
LAST A marker indicating the end of the argument list.

The imap_expunge_ex function permanently deletes messages on the IMAP server for a specific session.

This function is for use with multiple sessions. For global sessions, use the imap_expunge function, which leaves out the session identifier.

Return Values

If this function succeeds, it returns LR_PASS. Otherwise, it returns LR_FAIL.


All arguments of this function of the type char, can be parameterized with standard parameterization.