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

Incorrect encoding when retrieving folder name #479

Open
rskrzypczak opened this issue Mar 18, 2024 · 0 comments
Open

Incorrect encoding when retrieving folder name #479

rskrzypczak opened this issue Mar 18, 2024 · 0 comments

Comments

@rskrzypczak
Copy link
Contributor

Describe the bug
Incorrect encoding when retrieving folder from messages

php-imap/src/Message.php

Lines 953 to 955 in 0966e53

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

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
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