Fixed a bug that would only appear with an obscenely long line in the email.
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 1 Aug 2001 14:40:07 +0000 (14:40 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 1 Aug 2001 14:40:07 +0000 (14:40 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1471 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index 0591535..a809935 100755 (executable)
@@ -74,6 +74,9 @@
                } else {
                   $data[] = $read;
                   $read = fgets($imap_stream, 9096);
+                 while (strpos($read, "\n") === false) {
+                    $read .= fgets($imap_stream, 9096);
+                 }
                }
                $total_size += strlen($read);
             } else {