**/
include('../src/validate.php');
- include ("../functions/i18n.php");
- include("../functions/strings.php");
- include("../config/config.php");
include("../functions/array.php");
include("../functions/imap.php");
- include("../functions/page_header.php");
include("../functions/plugin.php");
- include("../src/load_prefs.php");
// open a connection on the imap port (143)
$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10); // the 10 is to hide the output
-
+
displayHtmlHeader();
+ if ($auto_create_special && ! isset($auto_create_done)) {
+ if (isset ($sent_folder) && $sent_folder != "none") {
+ if (!sqimap_mailbox_exists ($imapConnection, $sent_folder)) {
+ sqimap_mailbox_create ($imapConnection, $sent_folder, "");
+ }
+ }
+ if (isset ($trash_folder) && $trash_folder != "none") {
+ if (!sqimap_mailbox_exists ($imapConnection, $trash_folder)) {
+ sqimap_mailbox_create ($imapConnection, $trash_folder, "");
+ }
+ }
+ $auto_create_done = true;
+ session_register('auto_create_done');
+ }
+
function formatMailboxName($imapConnection, $box_array, $delimeter) {
global $folder_prefix, $trash_folder, $sent_folder;
global $color, $move_to_sent, $move_to_trash;
$mailboxURL = urlencode($real_box);
$unseen = 0;
-
+
if (($unseen_notify == 2 && $real_box == "INBOX") ||
$unseen_notify == 3) {
- $unseen = sqimap_unseen_messages($imapConnection, $numUnseen, $real_box);
+ $unseen = sqimap_unseen_messages($imapConnection, $real_box);
if ($unseen_type == 1 && $unseen > 0) {
$unseen_string = "($unseen)";
$unseen_found = true;