+ if (!isset($strings_php))
+ include("../functions/strings.php");
+ if (!isset($config_php))
+ include("../config/config.php");
+ if (!isset($page_header_php))
+ include("../functions/page_header.php");
+ if (!isset($imap_php))
+ include("../functions/imap.php");
+
+ include("../src/load_prefs.php");
+
+ $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+
+ $dm = sqimap_get_delimiter($imapConnection);
+ if (substr($old, strlen($old) - strlen($dm)) == $dm) {
+ $isfolder = true;
+ $old = substr($old, 0, strlen($old) - 1);
+ }
+