Browse Source

Fixed error in MIME structure parsing when response from IMAP server was more than one line.

pallo 25 years ago
parent
commit
502957a773
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/mime.php

+ 1 - 1
functions/mime.php

@@ -61,7 +61,7 @@
       $read = fgets ($imap_stream, 10000);
       $response = substr($read, 0, 4);
       while ($response != "a001") {
-         $bodystructure = $read;
+         $bodystructure .= $read;
          $read = fgets ($imap_stream, 10000);
          $response = substr($read, 0, 4);
       }