Added missing ';' in ISO-8859-1
[squirrelmail.git] / functions / imap_mailbox.php
index c5a147c81a71a3ef0eba7502695e15d2705df88b..48bd446cfba7ccfea71fbd955a80cf63562aa8fb 100755 (executable)
@@ -8,10 +8,10 @@
    /******************************************************************************
     **  Expunges a mailbox 
     ******************************************************************************/
-   function sqimap_mailbox_expunge ($imap_stream, $mailbox) {
+   function sqimap_mailbox_expunge ($imap_stream, $mailbox,$handle_errors = true) {
       sqimap_mailbox_select ($imap_stream, $mailbox);
       fputs ($imap_stream, "a001 EXPUNGE\r\n");
-      $read = sqimap_read_data($imap_stream, "a001", true, $response, $message);
+      $read = sqimap_read_data($imap_stream, "a001", $handle_errors, $response, $message);
       sqimap_mailbox_close ($imap_stream);
    }
 
@@ -53,7 +53,7 @@
       }
       if ($auto_expunge) {
          fputs ($imap_stream, "a001 EXPUNGE\r\n");
-         $tmp = sqimap_read_data($imap_stream, "a001", true, $a, $b);
+         $tmp = sqimap_read_data($imap_stream, "a001", false, $a, $b);
       }   
    }