boolean imap_createmailbox(integer stream, string mailbox)
Use imap_createmailbox to create a mailbox.
<?
// create a mailbox called PHP List
$mailbox = imap_open("{mail.server.com}INBOX",
"leon","password");
imap_createmailbox($mailbox, "PHP List");
imap_close($mailbox);
?>
boolean imap_delete(integer stream, integer message)
The imap_delete function marks a message for deletion. Use imap_expunge to
cause the message to be permanently deleted.
<?
// delete message number 3
$mailbox = imap_open("{mail.server.com}INBOX",
"leon","password");
imap_delete($mailbox, 3);
imap_close($mailbox);
?>
boolean imap_deletemailbox(integer stream, string mailbox)
The imap_deletemailbox function deletes the named mailbox.
<?
// delete a mailbox
$mailbox = imap_open("{mail.server.com}INBOX",
"leon","password");
imap_deletemailbox($mailbox, "PHP List");
imap_close($mailbox);
?>
array imap_errors()