Author Topic: E-Mail module: IMAP issue  (Read 3276 times)

luckyred

  • Newbie
  • *
  • Posts: 5
    • View Profile
E-Mail module: IMAP issue
« on: February 25, 2009, 09:35:36 pm »
Hello,

I am running Plesk on Debian with Opengoo 1.2.0.1.
I modified MailUtilities.class.php to fit my server needs.

Line296:
Code: [Select]
$mailbox_string = "{".$account->getServer().($account->getIncomingSsl() ? ":".$account->getIncomingSslPort() : "")."/imap".($account->getIncomingSsl() ? "ssl/novalidate-cert" : "")."}";

Line 352:
Code: [Select]
$mailbox_string = "{".$account->getServer().($account->getIncomingSsl() ? ":".$account->getIncomingSslPort() : "")."/imap".($account->getIncomingSsl() ? "/ssl/novalidate-cert" : "")."}";

Line 374:
Code: [Select]
$mailbox_string = "{".$account->getServer().($account->getIncomingSsl() ? ":".$account->getIncomingSslPort() : "")."/imap".($account->getIncomingSsl() ? "/ssl/novalidate-cert" : "")."}";

I have entered IMAP with SSL Support and Port 993.
I can see the IMAP folders on the email account edit page.

Now when I try to fetch emails, i get the error:

Fatal error: Cannot pass parameter 1 by reference in PATH/environment/classes/mail/MailUtilities.class.php on line 345
(Fatal 500 when Debug mode is set to false)

When I go to line 345, i see the following:

Code: [Select]
self::SaveMail($header . $body, $account, $uidl, $state, $imap_folder_name);

I removed that line and fetched email again. The upper message window appeared, telling me it fetched 23 emails. I sure dont see these emails, because they are not being saved.
I assume the problem is in the above line.

Any hint on how to solve this problem?

Kind regards,
Luckyred
« Last Edit: March 01, 2009, 11:51:56 am by luckyred »

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: E-Mail module: IMAP issue
« Reply #1 on: February 27, 2009, 05:49:01 pm »
Change that line for:
Code: [Select]
$message = $header . $body;
self::SaveMail($message, $account, $uidl, $state, $imap_folder_name);

That should fix it.

luckyred

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: E-Mail module: IMAP issue
« Reply #2 on: March 01, 2009, 11:54:58 am »
Works!

If you are using Plesk with Open Source SSL certificate and want to use IMAP change all the above lines as noted.

Thanks for the support!

Luckyred