ID: 39362 Updated by: [EMAIL PROTECTED] Reported By: askalski at gmail dot com -Status: Open +Status: Bogus Bug Type: IMAP related Operating System: Linux PHP Version: 5CVS-2006-11-03 (snap) New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. PHP does not control the number of retries performed, that is something the imap (c-client) library controls. Previous Comments: ------------------------------------------------------------------------ [2006-11-03 15:47:18] askalski at gmail dot com Description: ------------ imap_open will retry 3 times on bad credentials. Some IMAP or POP servers delay on successive bad logins, making a failed imap_open take very long. Worse, some servers will lock the user out because of repeated failed login attempts. Somewhere during module initialization, this call needs to be made: mail_parameters(NIL, SET_MAXLOGINTRIALS, (void *) 1); Reproduce code: --------------- imap_open("{mailserver/pop}", "user", "badpass"); Expected result: ---------------- It should try logging in only once. Actual result: -------------- It tries logging in three times (watch with a packet sniffer or strace). write(0, "AUTH LOGIN\r\n", 12) = 12 ... read(0, "-ERR Bad authentication\r\n", 8192) = 25 write(0, "AUTH LOGIN\r\n", 12) = 12 ... read(0, "-ERR Bad authentication\r\n", 8192) = 25 write(0, "AUTH LOGIN\r\n", 12) = 12 ... read(0, "-ERR Bad authentication\r\n", 8192) = 25 write(0, "QUIT\r\n", 6) = 6 read(0, "+OK Sayonara\r\n", 8192) = 14 write(1, "\nWarning: imap_open(): Couldn\'t "..., 104) = 104 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39362&edit=1