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

Fix #306 Folder name encoding error in appendMessage() #307

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

rskrzypczak
Copy link
Contributor

Create a folder containing a special character e.g. 'sent & trash'.
Then add a message to that folder.

$client->connect();
$folder = $client->getFolder('sent & trash');
$folder->appendMessage($message); // Not working, showing error

ERROR:
failed to send literal string.
TAG3 APPEND "INBOX.sent & trash" The folder name should be UTF7-IMAP.

In the appendMessage () function, changing $this->full_name to $this->path solves the problem.

@Webklex
Copy link
Owner

Webklex commented Nov 15, 2022

Hi @rskrzypczak ,
many thanks for your pull request!

Best regards,

@Webklex Webklex merged commit f5ae00b into Webklex:master Nov 15, 2022
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

Successfully merging this pull request may close these issues.

2 participants