Webklex / laravel-imap

Laravel IMAP is an easy way to integrate both the native php-imap module and an extended custom imap protocol into your Laravel app.
https://www.php-imap.com
MIT License
637 stars 182 forks source link

$message->getTextBody() returns content with headers #485

Open igorkorneichuk opened 12 months ago

igorkorneichuk commented 12 months ago

After upgrading to 5.5 (previously used very old version), getTextBody() for some messages returns raw content with headers.

Delivered-To: ***@***.com
Received: (qmail 1834102 invoked by uid 1008); 28 Nov 2023 16:10:10 -0000
X-Qmail-Scanner-Diagnostics: from pop.vulturemail.com by mail.***.com (envelope-from <***@***.de>, uid 89) with qmail-scanner-2.11
 (spamassassin: 3.4.4.
 Clear:RC:0(45.77.143.50):SA:0(1.9/5.0):.
 Processed in 1.83617 secs); 28 Nov 2023 16:10:10 -0000
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.***.com
X-Spam-Level: *
X-Spam-Status: No, score=1.9 required=5.0 tests=AWL,FSL_BULK_SIG,PYZOR_CHECK,
        SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.4
X-Envelope-From: ***@***.de
X-Qmail-Scanner-Mime-Attachments: |
X-Qmail-Scanner-Zip-Files: |
Received: from pop.vulturemail.com (45.77.143.50)
  by mail.***.com with SMTP; 28 Nov 2023 16:10:08 -0000
Received-SPF: pass (mail.****.com: SPF record at ***.de designates 45.77.143.50 as permitted sender)
Received: (qmail 9626 invoked by uid 89); 28 Nov 2023 16:10:08 -0000
Received: from unknown (HELO ?192.168.1.147?) (127.0.0.1)
  by pop.vulturemail.com with SMTP; 28 Nov 2023 16:10:08 -0000
Date: Tue, 28 Nov 2023 17:10:05 +0100
From: MA <***@***.de>
Reply-To: MA <***@***.de>
Message-ID: <352617112.20231128171005@***.de>
To: *** <***@****.com>
Subject: test
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello

x

--