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

Cache problem? Timeout on many mails? Paginate not working? #329

Closed
MalteKiefer opened this issue Sep 10, 2020 · 1 comment
Closed

Cache problem? Timeout on many mails? Paginate not working? #329

MalteKiefer opened this issue Sep 10, 2020 · 1 comment

Comments

@MalteKiefer
Copy link

MalteKiefer commented Sep 10, 2020

Good morning,

I have a little problem, and I hope you can help me.
I tried to open an Office365 Mailbox with more than 1800 Mails in the INBOX folder, like this:

        $client = new Client([
            'host'          => 'outlook.office365.com',
            'port'          => 993,
            'encryption'    => 'ssl',
            'validate_cert' => true,
            'username'      => 'username',
            'password'      => 'password',
            'protocol'      => 'imap'
        ]);

        $client->connect();
        $folder = $client->getFolder('INBOX');
        $messages = $folder->query(null)->limit(10)->get()->paginate($perPage = 2, $page = null);;

That works, but this command

{{$mailFolders->links()}}

show over 800 pages. I can click on page 832 but then I see "No messages found".

When I tried it like this:

        $folder = $client->getFolder('INBOX');
        $messages = $folder->query(null)->get()->paginate($perPage = 2, $page = null);;

my Laravel crashed. I must kill the Laravel process to get it work again. So my question is, is there a problem with mailbox in this size or is there a way to cache and only get the new mails?
I tried it with a different mailbox too. Same problem.

@Webklex
Copy link
Owner

Webklex commented Sep 22, 2020

Please update to v2.0.0 :)

@Webklex Webklex closed this as completed Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants