Browse Source

Changed sqimap_get_sort_order call to take three variables

indiri69 23 years ago
parent
commit
7e6f2753f6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plugins/delete_move_next/setup.php

+ 2 - 1
plugins/delete_move_next/setup.php

@@ -34,7 +34,8 @@ function fix_sort_array () {
     global $username, $data_dir, $allow_server_sort, $allow_thread_sort,
     global $username, $data_dir, $allow_server_sort, $allow_thread_sort,
     $mailbox, $imapConnection, $sort;
     $mailbox, $imapConnection, $sort;
     if ($allow_server_sort == true) {
     if ($allow_server_sort == true) {
-        $server_sort_array = sqimap_get_sort_order($imapConnection, $sort);
+        $mbxresponse = sqimap_mailbox_select($imapConnection, $mailbox);
+        $server_sort_array = sqimap_get_sort_order($imapConnection, $sort, $mbxresponse);
     }
     }
     $thread_sort_messages = getPref($username, $data_dir, "thread_$mailbox");
     $thread_sort_messages = getPref($username, $data_dir, "thread_$mailbox");
     if ($allow_thread_sort == true && $thread_sort_messages == 1) {
     if ($allow_thread_sort == true && $thread_sort_messages == 1) {