Browse Source

Adapted arguments for sqimap_fetch_small_header_list

stekkel 21 năm trước cách đây
mục cha
commit
f34d2ef36a
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      plugins/filters/filters.php

+ 2 - 3
plugins/filters/filters.php

@@ -309,10 +309,9 @@ function spam_filters($imap_stream) {
         }
         }
     }
     }
     if ($filters_spam_scan == 'new' && count($search_array)) {
     if ($filters_spam_scan == 'new' && count($search_array)) {
-        $headers = sqimap_get_small_header_list ($imap_stream, $search_array, $show_num=false,
-            array('Received'),array());
+        $headers = sqimap_get_small_header_list ($imap_stream, $search_array, array('Received'),array());
     } else if ($filters_spam_scan != 'new') {
     } else if ($filters_spam_scan != 'new') {
-        $headers = sqimap_get_small_header_list ($imap_stream,false, '*', array('Received'),array());
+        $headers = sqimap_get_small_header_list ($imap_stream, null , array('Received'),array());
     } else {
     } else {
         return;
         return;
     }
     }