Break 1 level less, otherwise the rest of the messages are not processed.
[squirrelmail.git] / 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 */