Closed (duplicate)
Project:
Basic webmail
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2008 at 09:54 UTC
Updated:
23 Apr 2008 at 14:00 UTC
First: I would like to apologize for my bad english.
When I try to connect to my INBOX get this error: "warning: Wrong parameter count for imap_open() in /var/www/intranet/modules/basic_webmail/basic_webmail.module on line 1960."
And, in the line 1960 we find:
if (($imap_resource = imap_open($mailbox, $username, $password, 0, 1)) == FALSE) {
But, the "imap_open" function waits 3 parameters (mailbox, username and password), not 5. Then, the correct line would be:
if (($imap_resource = imap_open($mailbox, $username, $password)) == FALSE) {
And this works (at least to me).
Comments
Comment #1
oadaeh commentedFor PHP versions before 5.2.0, it takes three with an optional fourth. For PHP versions 5.2.0 and later, there is an optional fifth parameter:
(http://us3.php.net/manual/en/function.imap-open.php)
See my first comment in http://drupal.org/node/248329 where I discussed this.