Adapted arguments for sqimap_fetch_small_header_list
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 2 Jun 2004 13:45:16 +0000 (13:45 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 2 Jun 2004 13:45:16 +0000 (13:45 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7586 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/filters/filters.php

index 229f774..1f82baf 100644 (file)
@@ -309,10 +309,9 @@ function spam_filters($imap_stream) {
         }
     }
     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') {
-        $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 {
         return;
     }