- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 183
 
Open
Description
It's a spam mail, so no hurry <3
Describe the bug
I got the Exception "Trailing data" on fetching messages. I added an echo with try catch on Header.php Line 715+
date:: 20 Feb 2025 15:54:41 +0000 Thu, 20 Feb 2025 15:54:41 +0000
Exception Message: Trailing data
File: /var/www/vendor/webklex/php-imap/src/Query/Query.php
Line: 323
case preg_match('/([A-Z]{2,4}\,\ [0-9]{1,2}\ [A-Z]{2,3}\ [0-9]{4}\ [0-9]{1,2}\:[0-9]{1,2}\:[0-9]{1,2}\ [\-|\+][0-9]{4})+$/i', $date) > 0:
                        $array = explode(',', $date);
                        array_shift($array);
                        try {
                            $date = Carbon::createFromFormat("d M Y H:i:s O", trim(implode(',', $array)));
                        } catch (\Throwable $throwable) {
                            echo 'date:: ' . trim(implode(',', $array));
                            throw $throwable;
                        }
                        break;Hiere the original header informations from mail client:
Return-Path: <XXXX@XXXX>
Delivered-To: [email protected]
Received: from panel.werner.domains
	by panel.werner.domains with LMTP
	id lNPYMRVbt2cVZTsAoPI9Mg
	(envelope-from XXXX@XXXX)
	for <[email protected]>; Thu, 20 Feb 2025 17:40:53 +0100
Received: fromXXXX (XXXX [IPv4])
	by panel.werner.domains (Postfix) with ESMTP id 84E076C01CA
	for <[email protected]>; Thu, 20 Feb 2025 17:40:53 +0100 (CET)
Date: Thu, 20 Feb 2025 15:54:41 +0000
Sender: XXXX@XXXX
Message-Id: <963537281151343.1.NEP3121922712@XXXX>
To: [email protected]
From: 
Subject: 
Content-Type: text/html; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: [content_transfer_encodingaReceived: by IPv6 with SMTP id kw52csp116239ecb;
        Thu, 20 Feb 2025 07:35:51 -0800 (PST)
X-Forwarded-Encrypted: i=2; XXXX@XXXX
X-Received: by IPv6 with SMTP id d75a77b69052e-47220fab812mr5571531cf.7.1740065750750;
        Thu, 20 Feb 2025 07:35:50 -0800 (PST)
X-Received: by IPv6 with SMTP id d75a77b69052e-4721307e149mr53077281cf.42.1740065750246;
        Thu, 20 Feb 2025 07:35:50 -0800 (PST)
X-BeenThere: XXXX@XXXX h=Adn5yVHB+eN4YSye5W9zMIhQs/tbl7leH40IGTrXG3zaySuYWw==
Received: by IPv6 with SMTP id d75a77b69052e-47214fa570als7353161cf.2.-pod-prod-08-us; Thu, 20 Feb 2025 07:35:48 -0800 (PST)
X-Received: by IPv6 with SMTP id af79cd13be357-7c0b5347f5emr956512685a.46.1740065748354;
        Thu, 20 Feb 2025 07:35:48 -0800 (PST)
Date: Thu, 20 Feb 2025 15:54:41 +0000
From: <XXXX@XXXX>
To: XXXX <XXXX@XXXX>
Message-Id: <96fcdf37-c639-4283-a8dc-a3cd589f1de5n@XXXX>
Subject:=?utf-8?B?TlVSIEbDnFIgS1VSWkUgWkVJVCE=?=
Used config
$cm = new ClientManager();
                $client = $cm->make([
                    'host' => $mailbox->credentials->host,
                    'port' => $mailbox->credentials->port,
                    'encryption' => $mailbox->credentials->encryption,
                    'validate_cert' => $mailbox->credentials->validate_cert,
                    'username' => $mailbox->credentials->username,
                    'password' => $mailbox->credentials->decrypted_password,
                    'protocol' => $mailbox->credentials->protocol,
                ]);Screenshots
If applicable, add screenshots to help explain your problem.
Desktop / Server (please complete the following information):
- OS: MacOs Docker
 - PHP: 8.4
 - Version "webklex/laravel-imap": "^6.2.0"
 - Provider self-hosted Keyhelp / Postfix/Dovecot
 
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels