Closed
Description
Describe the bug
When I'm parsing the e-mail message, I'm facing this issue when trying to getSubject().
Used config
I'm using default package config.
Code to Reproduce
The troubling code section which produces the reported bug.
$client = Client::account('default');
$client->connect();
$inbox = $client->getFolderByPath('INBOX');
$query = $inbox->messages();
$messages = $query->where(['UNSEEN'])->from($email)->get();
foreach ($messages as $message) {
echo $message->getSubject();
}
Expected behavior
99% of cases this script work, but to an specific message it's returing the subject as:
=?utf-8?Q?Confirmaci=C3=B3n_reserva_Free_Tour_Flo?= =?utf-8?Q?rencia_Esencial_-_Buendiatours.com?=
Desktop / Server (please complete the following information):
- OS: Windows 11 Enterprise
- PHP: XAMPP / PHP 8.2.7
- Version v5.3
- Provider Hetzner Online GmbH