php-imap
php-imap copied to clipboard
The move method does not work
After creating a folder in the mail service, I can't move a letter there. I get the error Attempt to read property "path" on null. The folder definitely exists, and I get the path $folder->path. But the getFolderByPath method returns null. If I move it to the standard folder "root" => "INBOX",
"junk" => "INBOX.Junk",
"draft" => "INBOX.Drafts",
"sent" => "INBOX.Sent",
"trash" => "INBOX.Trash", then everything works fine. But it doesn't work in the folder I created.