From 92a52cda1223beb06b1f5cc7cd4401c242721739 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 26 Mar 2004 10:24:45 +0000 Subject: [PATCH] Break 1 level less, otherwise the rest of the messages are not processed. 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 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/imap_messages.php b/functions/imap_messages.php index b271674a..90e9d192 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -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 */ -- 2.25.1