Removed spaces from end of SEARCH string, UW doesn't like them.
authorindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 23 Aug 2002 17:30:34 +0000 (17:30 +0000)
committerindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 23 Aug 2002 17:30:34 +0000 (17:30 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3442 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/filters/filters.php

index ffa257683b4c9cf47c4d8da7aceb7d0e4a0650bd..6357befddc9d6e9dfbbb1716c29116b8989e4932 100644 (file)
@@ -246,23 +246,24 @@ function filter_search_and_delete($imap, $where, $what, $where_to, $user_scan, $
         $category = 'ALL';
     }
 
-    if ($allow_charset_search && isset($languages[$squirrelmail_language]['CHARSET']) &&
+    if ($allow_charset_search &&
+        isset($languages[$squirrelmail_language]['CHARSET']) &&
         $languages[$squirrelmail_language]['CHARSET']) {
-        $search_str = "SEARCH CHARSET "
-            . strtoupper($languages[$squirrelmail_language]['CHARSET']) 
-            . ' ' . $category . ' ';
+        $search_str = 'SEARCH CHARSET '
+                    . strtoupper($languages[$squirrelmail_language]['CHARSET'])
+                    . ' ' . $category;
     } else {
-        $search_str = 'SEARCH CHARSET US-ASCII ' . $category . ' ';
+        $search_str = 'SEARCH CHARSET US-ASCII ' . $category;
     }
     if ($where == "Header") {
-       $what = explode(':', $what);
-       $where = trim($where . ' ' . $what[0]);
-       $what = addslashes(trim($what[1]));
+        $what  = explode(':', $what);
+        $where = trim($where . ' ' . $what[0]);
+        $what  = addslashes(trim($what[1]));
     }
 
     /* read data back from IMAP */
     $read = sqimap_run_command($imap, $search_str, true, $reponse, $message, $uid_support);
-    
+
     // This may have problems with EIMS due to it being goofy
 
     for ($r=0; $r < count($read) &&