projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made sorting method persistant using session management
[squirrelmail.git]
/
src
/
empty_trash.php
diff --git
a/src/empty_trash.php
b/src/empty_trash.php
index 4a4d8d9d16e6e5bed4676f4c9158c1df6d5c1e5f..4a18b8bac87aed0612221ce005db2f7fa7ecba5c 100644
(file)
--- a/
src/empty_trash.php
+++ b/
src/empty_trash.php
@@
-1,4
+1,6
@@
-<?
+<?php
+ session_start();
+
include("../config/config.php");
include("../functions/strings.php");
include("../functions/page_header.php");
include("../config/config.php");
include("../functions/strings.php");
include("../functions/page_header.php");
@@
-42,9
+44,7
@@
}
// now lets go through the tree and delete the folders
}
// now lets go through the tree and delete the folders
- walkTreeInPreOrderDeleteFolders(0, $imap_stream, $foldersTree);
- // now lets create a new, fresh trash folder
- sqimap_mailbox_create($imap_stream, "$trash_folder", "");
+ walkTreeInPreOrderEmptyTrash(0, $imap_stream, $foldersTree);
sqimap_mailbox_select($imap_stream, $trash_folder, $numMessages);
echo "<HTML><BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
sqimap_mailbox_select($imap_stream, $trash_folder, $numMessages);
echo "<HTML><BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";