Browse Source

fix imap command. \r\n is added by sqimap_run_command. If second \r\n is
present, it breaks next issued imap command (sqimap_mailbox_exists() always
returns true).

tokul 20 years ago
parent
commit
ef1ace4ccb
2 changed files with 3 additions and 1 deletions
  1. 2 0
      ChangeLog
  2. 1 1
      plugins/filters/filters.php

+ 2 - 0
ChangeLog

@@ -446,6 +446,8 @@ Version 1.5.1 -- CVS
     in src/configtest.php.
   - Added field size controls to database preference backend (#1233721).
   - Added bincimap preset (#1285099).
+  - Fixed IMAP search command in filters plugin. Command was breaking 
+    sqimap_mailbox_exists() check. Reported by Daniel Watts.
 
 Version 1.5.0 - 2 February 2004
 -------------------------------

+ 1 - 1
plugins/filters/filters.php

@@ -315,7 +315,7 @@ function filter_search_and_delete($imap_stream, $where, $what, $where_to, $user_
         $search_str .= ' ' . $where . ' ' . $what;
     } else {
         $search_str .= ' ' . $where . ' {' . strlen($what) . "}\r\n"
-                    . $what . "\r\n";
+                    . $what;
     }
 
     /* read data back from IMAP */