more debug stuff for Shane
authornehresma <nehresma@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Feb 2000 22:23:00 +0000 (22:23 +0000)
committernehresma <nehresma@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Feb 2000 22:23:00 +0000 (22:23 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@218 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/empty_trash.php

index dab7f4e1e24ed2b549e15fe0cd9f6a304f796026..60d1386fffb151f70bf47998ffcec462d9f245fb 100644 (file)
    fputs($imapConnection, "1 LIST \"$mailbox\" *\n");
    $data = imapReadData($imapConnection , "1", false, $response, $message);
    while (substr($data[0], strpos($data[0], " ")+1, 4) == "LIST") {
+      echo "DEBUG - data from IMAP \"LIST\" : " . $data[0] . "<BR>\n"; 
       for ($i = 0; $i < count($boxes); $i++) {
          if (($boxes[$i]["UNFORMATTED"] == $mailbox) ||
              (substr($boxes[$i]["UNFORMATTED"], 0, strlen($mailbox . $dm)) == $mailbox . $dm)) {
-            echo "\nDEBUG - Removing folder " . $boxes[$i]["UNFORMATTED"] . "<BR>\n";
-            echo "DEBUG - mailbox is : $mailbox<br>\n";
             removeFolder($imapConnection, $boxes[$i]["UNFORMATTED"]);
          }
       }