Break 1 level less, otherwise the rest of the messages are not processed.
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 26 Mar 2004 10:24:45 +0000 (10:24 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 26 Mar 2004 10:24:45 +0000 (10:24 +0000)
I hit this bug by coincidance and thnx to a server crash. Cyrus returned
information like UID, RFC822.SIZE, INTERNALDATE (that info is probably
cached by cyrus) correct, but an empty header. At the end of the response
there was an untagged OK response with as server message: Message <nnn> no
longer exists.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6901 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_messages.php

index b271674a0e9000cfa4578ccc3dea1a28108e3a7d..90e9d192a87e2841ea841d23c63891733e55158e 100755 (executable)
@@ -609,7 +609,7 @@ function sqimap_get_small_header_list ($imap_stream, $msg_list, $show_num=false)
             case 'BODY[HEADER.FIELDS':
                 $i = strpos($read,'{',$i);
                 $header = parseString($read,$i);
-                if ($header === false) break 3;
+                if ($header === false) break 2;
                 /* First we replace all \r\n by \n, and unfold the header */
                 $hdr = trim(str_replace(array("\r\n", "\n\t", "\n "),array("\n", ' ', ' '), $header));
                 /* Now we can make a new header array with */