Webmail Problem

Hi,

When loggin into webmail I get this error :

Deprecated: Function eregi() is deprecated in /var/www/vhosts/ehcp/webmail/functions/imap_general.php on line 660

Deprecated: Function eregi() is deprecated in /var/www/vhosts/ehcp/webmail/functions/imap_general.php on line 661

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/ehcp/webmail/functions/imap_general.php:660) in /var/www/vhosts/ehcp/webmail/functions/global.php on line 514

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/ehcp/webmail/functions/imap_general.php:660) in /var/www/vhosts/ehcp/webmail/src/redirect.php on line 186

go to line 660 and 661 of that file,
apply the patch mentioned at http://www.phpfreaks.com/forums/index.php?topic=268441.0

it is a new behaviour of php.

i will also fix it in next release of ehcp.
i may send you files soon.

Line 660 & 661

if (eregi('\\* NAMESPACE +(\\( *\\(.+\\) *\\)|NIL) +(\\( *\\(.+\\) *\\)|NIL) +(\\( *\\(.+\\) *\\)|NIL)', $read[0], $data)) {
if (eregi('^\\( *\\((.*)\\) *\\)', $data[1], $data2)) {

According Patch change eregi to preg_match

Then change \\ to //

It's not working for me.

Regards,

Derick Nieuwoudt

Problem :

Ubuntu Linux 10.04.1

No Problem :

Ubuntu Linux 10.04

Regards,

Derick Nieuwoudt