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

Folder name encoding error in appendMessage() #306

Closed
rskrzypczak opened this issue Oct 19, 2022 · 0 comments
Closed

Folder name encoding error in appendMessage() #306

rskrzypczak opened this issue Oct 19, 2022 · 0 comments

Comments

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

Solution:
In the appendMessage () function, replace $this->full_name with $this->path
$this->client->getConnection()->appendMessage($this->path, $message, $options, $internal_date);

rskrzypczak added a commit to rskrzypczak/php-imap that referenced this issue Oct 19, 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

No branches or pull requests

1 participant