From f1b4c48eb06ce7a7b069243791f513a5398ff265 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 9 Dec 2019 20:43:06 +0000 Subject: [PATCH] imap : headers/body separator is \r\n git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5828 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- imap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imap.php b/imap.php index a9653fa..6a063c8 100644 --- a/imap.php +++ b/imap.php @@ -469,7 +469,8 @@ class imap $this->changeFolder ($this->curDir); // Clear the errors imap_errors(); - $content = @imap_fetchheader (self::$instance[$this->mailbox], $msgno)."\n". + $content = @imap_fetchheader (self::$instance[$this->mailbox], $msgno). + "\r\n". @imap_body (self::$instance[$this->mailbox], $msgno); $errors = imap_errors (); if ($errors !== false || $content === "\n")