From: lkehresman Date: Mon, 29 Nov 1999 01:57:53 +0000 (+0000) Subject: Folder manipulation stuff X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=597d8f1dd82b77e993a99ea9dca1c26b19218b8b Folder manipulation stuff git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@34 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/config/config.php b/config/config.php index 9048b0aa..1761bcd3 100644 --- a/config/config.php +++ b/config/config.php @@ -29,7 +29,7 @@ $version = "0.0.1"; * will get expunged, removing all messages marked "Deleted". */ -$move_to_trash = true; +$move_to_trash = false; $trash_folder = "INBOX.Trash"; $auto_expunge = true; diff --git a/functions/imap.php b/functions/imap.php index 1dea2a4f..30ef23b0 100644 --- a/functions/imap.php +++ b/functions/imap.php @@ -59,7 +59,7 @@ } /** must be sent in the form: user.. **/ - function deleteFolder($imapConnection, $folder) { + function removeFolder($imapConnection, $folder) { fputs($imapConnection, "1 delete \"$folder\"\n"); } ?> diff --git a/functions/mailbox.php b/functions/mailbox.php index a4110476..95caabd1 100644 --- a/functions/mailbox.php +++ b/functions/mailbox.php @@ -161,5 +161,4 @@ return $box; } - ?> diff --git a/src/folders.php b/src/folders.php index 0942ddbf..b6350954 100644 --- a/src/folders.php +++ b/src/folders.php @@ -4,6 +4,7 @@ include("../functions/strings.php"); include("../functions/page_header.php"); include("../functions/imap.php"); + include("../functions/mailbox.php"); displayPageHeader("None"); @@ -35,15 +36,19 @@ /** DELETING FOLDERS **/ echo "
\n"; - echo "\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]) $use_folder = false; } if ($use_folder == true) - echo "