[php-src] Issue #11784: Mailbox has more messages (.......) exist than maximum (....)

From: Date: Tue, 25 Jul 2023 10:38:51 +0000
Subject: [php-src] Issue #11784: Mailbox has more messages (.......) exist than maximum (....)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245028@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11784 Author: ivanghisleni ### Description From manual page: https://php.net/function.imap-fetch-overview I'm facing this error and I don't know how to solve it.. PHP Notice: Unknown: Mailbox has more messages (1057204) exist than maximum (1000000) (errflg=2) in Unknown on line 0 PHP version: 7.4.32 Code: ``` <?php $mbox = imap_open("{******:993/imap/ssl/novalidate-cert}INBOX", "*****", "*****") or die("can't connect: " . imap_last_error()); var_dump("Listing"); $MC = imap_check($mbox); $range = 20; var_dump($MC->Nmsgs); // Fetch an overview for all messages in INBOX $result = imap_fetch_overview($mbox,"1:{$range}",1); /*foreach ($result as $overview) { echo "#{$overview->msgno} ({$overview->date}) - From: {$overview->from} {$overview->subject}\n"; }*/ imap_close($mbox); ``` ### PHP Version PHP 7.4.32 ### Operating System Centos 7

« previous php.bugs (#245028) next »