$default_move_to_trash = true;
$trash_folder = "INBOX.Trash";
- $default_auto_expunge = true;
+ $auto_expunge = true;
// Special Folders are folders that can't be manipulated like normal user created
// folders can. A couple of examples would be "INBOX.Trash", "INBOX.Drafts". We have
} else {
setMessageFlag($imapConnection, $a, $b, "Deleted");
}
+ if ($auto_expunge == true)
+ expungeBox($imapConnection, $mailbox);
}
+
function stripComments($line) {
if (strpos($line, ";")) {
$line = substr($line, 0, strpos($line, ";"));
function expungeBox($imapConnection, $mailbox) {
selectMailbox($imapConnection, $mailbox, $num);
fputs($imapConnection, "1 EXPUNGE\n");
+ imapReadData($imapConnection, "1", true, $response, $message);
}
function getFolderNameMinusINBOX($mailbox, $del) {