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) Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.