Skip to content

Crash getting message sequence with error: Mailbox has more messages #565

Description

@ivanghisleni
Q A
ddeboer/imap version 1.12.4
PHP version 7.4.32
IMAP provider pec.it

Summary

I'm facing a mailbox with 1523650948 messages and when I try to get the message sequence [1:2000] it crash, I tried to reproduce with openssl access and I'm able to get this message sequence.. Is there a way to fix or avoid this behaviour?

Current behavior

when I call $messages = $outerMailbox->getMessageSequence($uidRange);

I got this error:

Ddeboer\Imap\Exception\InvalidSearchCriteriaException:Invalid sequence [1:2000]
imap_alerts (0):
imap_errors (1):

  • Mailbox has more messages (1056880) exist than maximum (1000000) at .../vendor/ddeboer/imap/src/Mailbox.php:157

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions