Skip to content

Problem with subject =?UTF-8?Q? (2) #420

Closed
@paulocardozo

Description

@paulocardozo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions