-------- Original Message --------
Subject: RE: [SM-USERS] Login Problems with SM 1.4.0/PHP 4.3.2
From: "Derek Battams" <[EMAIL PROTECTED]>
Date: Sun, June 8, 2003 11:44
To: <[EMAIL PROTECTED]>

p dont think said:
>> Installing SM on a newly setup server.  The Linux install includes SM
>> 1.4.0, PHP 4.3.2 and Apache 2.0.46.  The IMAP server is Courier.
>> Courier works and I can connect to it with Evolution.
>>
>> The problem is that with SM installed I get an invalid user/password
>> error.  I've traced the problem to the quoteimap() function in
>> src/strings.php.  When adding debug statements I can see that the
>> quoteimap() function takes in my username and password but returns
> empty
>> strings in both cases.  These empty strings are then used in the
>> LOGIN command sent to the IMAP server and hence the reason for the
>> invalid username/pwd error message.  I installed SM 1.2.11 and the
>> exact same thing happens.  I'm running SM on other servers (PHP
>> 4.2.3, Apache 1.3.27, SM 1.2.11) with no problems.
>>
>> So is this an SM, PHP and/or Apache problem?
>
> as usual, it's probably new versions of php being troublesome.  for
> kicks, try changing the ereg_replace to preg_replace in that function
> (which is in the functions directory, by the way)...??
>
>  - paul


Made the suggested change and still get the same result.  Playing around
with things, I simply changed quoteimap() to:

function quoteimap($str)
{
   return $str;
}
Has anyone else attempted to look into this problem?  I'm starting to lean
towards some type of SM issue involved here.  Why do I say that?  Well, a
This allowed me to login but the folder list (left frame) doesn't show
any folder names (they're all blank) so it would appear that the same
problem is happening in another function?  Obviously my rewrite of
quoteimap() will lead to some problems under certain circumstances so it
can't stay like that, anyone else have a better rewrite?

  - Derek
-----

Some more info... my web log shows the following error when attempting to
login.

[client 192.168.1.10] PHP Warning:  ereg_replace(): unbalanced [] at
offset 6 in /home/sqmail/squirrelmail-1.4.0/functions/strings.php on line
426, referer: http://mail-test/src/login.php

This would explain why the function is returning an empty string.  I
personally don't see the problem with the function.  Can anyone see the
problem?  Can anyone provide a fix?

Again, when I hacked quoteimap() so that it would return something the
login would succeed but on the message list the folder names were all
blank.

Help appreciated,

Derek




-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to