varu Posted July 29, 2010 Share Posted July 29, 2010 I'm building a PHP application that's connect to gmail and download the messages. I have an account that contains more than two millions messages and the PHP cannot connect to that account. What can I do? The error is: Mailbox has more messages (2004032) exist than maximum (1000000) Link to comment https://forums.phpfreaks.com/topic/209270-imap-open-gmail-error-too-many-e-mails/ Share on other sites More sharing options...
kenrbnsn Posted July 29, 2010 Share Posted July 29, 2010 Please post your code and tell us which line is getting the error. Ken Link to comment https://forums.phpfreaks.com/topic/209270-imap-open-gmail-error-too-many-e-mails/#findComment-1092771 Share on other sites More sharing options...
varu Posted July 29, 2010 Author Share Posted July 29, 2010 This is the code: $label = '[Gmail]/All Mail'; $gmailConnection = imap_open('{imap.gmail.com:993/ssl/novalidate-cert}'.$label, $username, $password, OP_READONLY); if( $gmailConnection === false ) die('Cannot connect to gmail, account '.$username.'<br />Error: '.imap_last_error()); Thank you Link to comment https://forums.phpfreaks.com/topic/209270-imap-open-gmail-error-too-many-e-mails/#findComment-1092780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.