Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V5.5 = Empty Response #538

Open
codeway opened this issue Dec 11, 2024 · 0 comments
Open

V5.5 = Empty Response #538

codeway opened this issue Dec 11, 2024 · 0 comments

Comments

@codeway
Copy link

codeway commented Dec 11, 2024

The bug come when i want to retreive a message by uid to show his body content.

Some messages works, others triggers this error.

Code i use :
$client = \Webklex\IMAP\Facades\Client::make([
'host' => 'imap.xxx',
'port' => 993,
'encryption' => 'ssl',
'validate_cert' => true,
'username' => $email,
'password' => $password,
'protocol' => 'imap'
]);;
try {
$client->connect();
} catch (\Throwable $th) {
die("Erreur de connexion Imap. Veuillez vous reconnecter sur la page de login.");
}

$folder = $client->getFolderByName($folderPath);
$message = $folder->query()->getMessageByUid($uid); //=> ERROR here

But when i debug,
I see all content of this message, so the php_imap get this email infos without issue.
...
< TAG2 OK List completed.

TAG3 SELECT "Archives/2020"

<< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk)
<< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk *)] Flags permitted.
<< * 1 EXISTS
<< * 0 RECENT
<< * OK [UIDVALIDITY 148355163] UIDs valid
<< * OK [UIDNEXT 3] Predicted next UID
<< TAG3 OK [READ-WRITE] Select completed (0.000 secs).

TAG4 UID FETCH 2 (FLAGS)

<< * 1 FETCH (UID 2 FLAGS (\Seen NonJunk))
<< TAG4 OK Fetch completed.

TAG5 UID FETCH 2 (RFC822.HEADER)

<< * 1 FETCH (UID 2 RFC822.HEADER {1074}
<< Return-path:....
[...]
<< Date: Thu, 22 Oct 2020 07:06:25 +0200
<< X-Spam-Bar: ++++
<<
<< )
<< TAG5 OK Fetch completed.

TAG6 UID FETCH 2 (RFC822.TEXT)

<< * 1 FETCH (UID 2 RFC822.TEXT {149}
<< test
<< )
<< TAG6 OK Fetch completed.

Screenshots
image

Desktop / Server (please complete the following information):

  • OS: Debian
  • PHP: 8.1
  • Version webklex/php-imap 5.5.0

Do you have any idea ?

Thank you;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant