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

oadaeh’s picture

Status: Fixed » Closed (duplicate)

For 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:

resource imap_open ( string $mailbox , string $username , string $password [, int $options [, int $n_retries ]] )

(http://us3.php.net/manual/en/function.imap-open.php)

See my first comment in http://drupal.org/node/248329 where I discussed this.