Luke Ehresman 25 lat temu
rodzic
commit
21e8c8041f
4 zmienionych plików z 3 dodań i 6 usunięć
  1. 1 1
      config/config.php
  2. 1 0
      functions/mailbox_display.php
  3. 1 2
      src/folders.php
  4. 0 3
      src/folders_delete.php

+ 1 - 1
config/config.php

@@ -29,7 +29,7 @@ $version = "0.0.1";
  *           will get expunged, removing all messages marked "Deleted".
  */
 
-$move_to_trash = false;
+$move_to_trash = true;
 $trash_folder = "INBOX.Trash";
 $auto_expunge = true;
 

+ 1 - 0
functions/mailbox_display.php

@@ -1,4 +1,5 @@
 <?
+
    /**
     **  mailbox_display.php
     **

+ 1 - 2
src/folders.php

@@ -35,13 +35,12 @@
    }
 
    /** 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])

+ 0 - 3
src/folders_delete.php

@@ -8,8 +8,6 @@
    $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);
@@ -29,7 +27,6 @@
    } else {
       removeFolder($imapConnection, "user.$username.$folder");
    }
-   echo "success";
 
    // Log out this session
    fputs($imapConnection, "1 logout");