php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

Incorrect encoding when retrieving folder name

Open rskrzypczak opened this issue 1 year ago • 0 comments

Describe the bug Incorrect encoding when retrieving folder from messages https://github.com/Webklex/php-imap/blob/0966e53399f7c14880f7a3453ef28e6f8efe09b7/src/Message.php#L953-L955

Expected behavior Get the correct folder

Solution: set the second argument to true because folder_path is always utf7

 public function getFolder(): ?Folder { 
     return $this->client->getFolderByPath($this->folder_path, true); 
 } 

Desktop / Server (please complete the following information):

  • PHP: 8.1
  • Webklex v.5.5.0

rskrzypczak avatar Mar 18 '24 16:03 rskrzypczak