Made deleting messages smarter.. detects if trash folder exists or not
[squirrelmail.git] / functions / imap.php
index 88189760c65eb6d75137f475c8d5bc815e6d7f79..169d1a2761ad8507365710deafff3bed30a03f35 100644 (file)
          $success = copyMessages($imapConnection, $a, $b, $trash_folder);
          if ($success == true)
             setMessageFlag($imapConnection, $a, $b, "Deleted");
+         else
+            echo "There was an error moving the messages.<BR>Messages NOT deleted.";
       } else {
          setMessageFlag($imapConnection, $a, $b, "Deleted");
       }