* will get expunged, removing all messages marked "Deleted".
*/
-$move_to_trash = false;
+$move_to_trash = true;
$trash_folder = "INBOX.Trash";
$auto_expunge = true;
<?
+
/**
** mailbox_display.php
**
}
/** DELETING FOLDERS **/
+
echo "<FORM ACTION=folders_delete.php METHOD=POST>\n";
echo "<SELECT NAME=mailbox><FONT FACE=\"Arial,Helvetica\">\n";
for ($i = 0; $i < count($str); $i++) {
$thisbox = Chop($str[$i]);
$thisbox = findMailboxName($thisbox);
- $thisbox = getFolderNameMinuxINBOX($thisbox);
-
$use_folder = true;
for ($p = 0; $p < count($special_folders); $p++) {
if ($special_folders[$p] == $long_name_boxes[$i])
$imapConnection = loginToImapServer($username, $key, $imapServerAddress);
// switch to the mailbox, and get the number of messages in it.
- echo "$mailbox<BR>";
- exit;
selectMailbox($imapConnection, $mailbox, $numMessages);
$folder = getFolderNameMinusINBOX($mailbox);
} else {
removeFolder($imapConnection, "user.$username.$folder");
}
- echo "success";
// Log out this session
fputs($imapConnection, "1 logout");