Webklex / laravel-imap

Laravel IMAP is an easy way to integrate both the native php-imap module and an extended custom imap protocol into your Laravel app.
https://www.php-imap.com
MIT License
641 stars 182 forks source link

Cannot move to sub folder #423

Closed larsbo closed 2 years ago

larsbo commented 3 years ago

After upgrading from 1.6.x to 2.4.x I cant move a message into an existing sub folder.

Steps to reproduce the behavior: Running $message->move('INBOX.Folder.SubFolder'); does not throw an exception and the message stays in the current folder.

While $message->move('INBOX.Folder'); works fine.

The reason seems to be that examineFolder() inside the move method fails.

larsbo commented 3 years ago

Update: it works fine with existing folders but not if the sub folder does not exist.

Webklex commented 2 years ago

Hi @larsbo , many thanks for your report. To be honest, it seem fine to me :) If you like to implement such a feature, feel free to create a pull request here: https://github.com/Webklex/php-imap

Best regards,