Remove leading spaces from IMAP commands, which was breaking Cyrus. This
[squirrelmail.git] / functions / imap_general.php
index a2e6bac355d36b2816f8ac11d099dc7a05364ac2..21672e144ddc8048bb05bd6bba731711f021f7d7 100755 (executable)
@@ -387,7 +387,7 @@ function sqimap_find_displayable_name ($string) {
 */
 function sqimap_unseen_messages ($imap_stream, $mailbox) {
     //fputs ($imap_stream, sqimap_session_id() . " SEARCH UNSEEN NOT DELETED\r\n");
-    $read_ary = sqimap_run_command ($imap_stream, " STATUS \"$mailbox\" (UNSEEN)", true, $result, $message);
+    $read_ary = sqimap_run_command ($imap_stream, "STATUS \"$mailbox\" (UNSEEN)", true, $result, $message);
     ereg("UNSEEN ([0-9]+)", $read_ary[0], $regs);
     return $regs[1];
 }