little fix
[squirrelmail.git] / src / move_messages.php
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)