Skip to content

Exception when move a message #131

Closed
@hernan-estalella

Description

@hernan-estalella

Hi! I'm trying to move a bunch of messages from a GMail account to a custom folder and I'm always getting an exception after 2nd or 3rd message moved.

PHP 7.3
Laravel 5.8
Webklex/laravel-imap: 2.4.0

This is the code I'm using for:

            $folder = $client->getFolder('INBOX');
            $messages = $this->getMessages($folder);
            foreach ($messages as $message) {
                $message->move($ezFolderName);
            }

Exception:

Webklex \ PHPIMAP \ Exceptions \ MessageNotFoundException
message number not found

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions