imap_delete_ex

Example: imap_delete_exInternet Messaging Functions (IMAP)

Deletes a mailbox for a specific IMAP session.

int imap_delete_ex( IMAP *ppimap, char *transaction, char *mailbox, 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, "".
mailboxThe name of the mailbox(es) to delete."MAILBOX=mailbox1", "MAILBOX=mailbox2", ...
LAST A marker indicating the end of the argument list.

The imap_delete_ex function deletes an existing mailbox for a specific session.

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

Return Values

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

Parameterization

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