Applied patch #102205 + some extra code to fix bug #121006.
authorpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 24 Nov 2000 14:47:54 +0000 (14:47 +0000)
committerpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 24 Nov 2000 14:47:54 +0000 (14:47 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@854 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php
functions/mailbox_display.php
functions/tree.php
src/delete_message.php
src/move_messages.php

index c5a147c81a71a3ef0eba7502695e15d2705df88b..a096d6c05a1709e540dd4323728ccfa39c20a3a6 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) {
       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);
       }   
    }
 
index 3beb51cf62bda48e245769f0ec7581338d24badb..5503e7b1cfa7ccd9c11bb8a6bbc6b0fd1b2f8218 100644 (file)
       global $message_highlight_list;
       global $auto_expunge;
 
-      sqimap_mailbox_expunge($imapConnection, $mailbox);
+      sqimap_mailbox_expunge($imapConnection, $mailbox, false);
       sqimap_mailbox_select($imapConnection, $mailbox);
 
       if (!$use_cache) {
index 99a7198b041d19eb73eca94cf591006d39f7027b..28cb3e5b86b412a6533b72a758c511c53a1627ad 100644 (file)
@@ -60,7 +60,7 @@
             if ($numMessages > 0) {
                sqimap_mailbox_select($imap_stream, $trash_folder);
                sqimap_messages_flag ($imap_stream, 1, $numMessages, "Deleted");
-               sqimap_mailbox_expunge($imap_stream, $trash_folder);
+               sqimap_mailbox_expunge($imap_stream, $trash_folder, true);
                sqimap_mailbox_close($imap_stream);
             }
          }
@@ -72,7 +72,7 @@
             if ($numMessages > 0) {
                sqimap_mailbox_select($imap_stream, $trash_folder);
                sqimap_messages_flag ($imap_stream, 1, $numMessages, "Deleted");
-               sqimap_mailbox_expunge($imap_stream, $trash_folder);
+               sqimap_mailbox_expunge($imap_stream, $trash_folder, true);
                sqimap_mailbox_close($imap_stream);
             }
          }
index 132b68c975edb7f515a8e8337e1686fcbc50d113..086750e6b424052159a2460c43a45a05bd913c28 100644 (file)
@@ -29,7 +29,7 @@
 
    sqimap_messages_delete($imapConnection, $message, $message, $mailbox);
    if ($auto_expunge)
-      sqimap_mailbox_expunge($imapConnection, $mailbox);
+      sqimap_mailbox_expunge($imapConnection, $mailbox, true);
 
    $location = get_location();
    if ($where && $what)
index 87fb326cdaa29da6bead55d20ca18b9b61456dab..ae7155c4bcb526524734b4275d5457a41796810e 100644 (file)
@@ -51,7 +51,7 @@
 
    // expunge-on-demand if user isn't using move_to_trash or auto_expunge
    if($expungeButton) {
-     sqimap_mailbox_expunge($imapConnection, $mailbox);
+     sqimap_mailbox_expunge($imapConnection, $mailbox, true);
      $location = get_location();
      if ($where && $what)
        header ("Location: $location/search.php?mailbox=".urlencode($mailbox)."&what=".urlencode($what)."&where=".urlencode($where));
             $i++;
          }
          if ($auto_expunge) {
-            sqimap_mailbox_expunge($imapConnection, $mailbox);
+            sqimap_mailbox_expunge($imapConnection, $mailbox, true);
          }
          $location = get_location();
          if ($where && $what)
             $i++;
          }
          if ($auto_expunge == true)
-            sqimap_mailbox_expunge($imapConnection, $mailbox);
+            sqimap_mailbox_expunge($imapConnection, $mailbox, true);
 
          $location = get_location();
          if ($where && $what)