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

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

Open
ivanghisleni opened this issue Jul 21, 2023 · 3 comments
Open
Labels

Comments

@ivanghisleni
Copy link
Contributor

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
@ivanghisleni
Copy link
Contributor Author

I'M trying to debugging and the issue seems related to:

$result = imap_fetch_overview($mbox,"1:{$range}",0);

@Slamdunk
Copy link
Collaborator

Since I don't have a mailbox with one and a half billion messages, I cannot reproduce the bug.

If you find a solution, please post it here so we can discuss on it

@ivanghisleni
Copy link
Contributor Author

Bad news for us: php/doc-en#2593

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants