[imp] I've had it up to here.

Brent J. Nordquist bjn@horde.org
Wed, 19 Dec 2001 21:01:30 -0600 (CST)


On Wed, 19 Dec 2001, Chuck Cochems <zaphod@tdl.com> wrote:

> I am using IMP 2.2.7 and horde 1.2.7, and am using php 4.0.6,

Did you compile your PHP or install it with packages?  If packages, what's
the exact (full) PHP version, release number, etc.?  What operating system
and version are you using?

> Whenever I enter an incorrect password, I get a ton of constant already
> defined errors.

Do they look like this?

http://marc.theaimsgroup.com/?l=imp&m=100834204314591&w=2

He said he was using 2.2.7 also, but didn't tell us what version of PHP.  
Perhaps we can narrow down what this might be.

> I'm using SHM instead of a database, same as I set up the old server. 

What's different about the "old server"... operating system version, PHP 
version, how it was compiled, configuration files (did you diff them), 
etc.?  If one works and the other doesn't then that gives you something to 
go on.

> Using a correct password works fine, but an incorrect password freezes
> IMP but leaves the rest of PHP alone,

Hm... sounds like some kind of PHPLIB session thing, then, maybe?

> and causes the errors to get spit out.  ALso, the phplib test fails to
> run.

I presume you mean that the PHPLIB test runs correctly, until someone
enters an invalid password, and then it fails to run?

-- 
Brent J. Nordquist <bjn@horde.org> N0BJN       / OPN: #horde
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942



>From accdias@sst.com.br Date: 20 Dec 2001 00:59:57 -0200
Return-Path: <accdias@sst.com.br>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 35350 invoked from network); 20 Dec 2001 03:02:59 -0000
Received: from a.mx.sst.com.br (qmailr@200.223.199.3)
  by clark.horde.org with SMTP; 20 Dec 2001 03:02:59 -0000
Received: (qmail 22390 invoked from network); 20 Dec 2001 03:02:40 -0000
Received: from storm.sst.com.br (none@200.223.199.5)
  by a.mx.sst.com.br with SMTP; 20 Dec 2001 03:02:40 -0000
From: Antonio Dias <accdias@sst.com.br>
To: imp@lists.horde.org
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0 (Preview Release)
Date: 20 Dec 2001 00:59:57 -0200
Message-Id: <1008817198.2328.0.camel@storm>
Mime-Version: 1.0
Subject: date() i18n in IMP

I was looking the code for strings without _() marks and found this in
imp/mailbox.php line 124:

 Horde::raiseMessage(sprintf(_("Last login: %s"), date('l, F j, Y, g:i:s
A T', $last_login)), HORDE_MESSAGE);

IMHO date('l, F j, Y, g:i:s A T') will not be formatted in the current
locale set. Should not it be better have date(_('l, F j, Y, g:i:s A T'))
and let the translator supply a mask adequated to his language?

--
Antonio Dias



>From accdias@sst.com.br Date: 20 Dec 2001 01:06:33 -0200
Return-Path: <accdias@sst.com.br>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 37069 invoked from network); 20 Dec 2001 03:09:31 -0000
Received: from a.mx.sst.com.br (qmailr@200.223.199.3)
  by clark.horde.org with SMTP; 20 Dec 2001 03:09:31 -0000
Received: (qmail 22460 invoked from network); 20 Dec 2001 03:09:15 -0000
Received: from storm.sst.com.br (none@200.223.199.5)
  by a.mx.sst.com.br with SMTP; 20 Dec 2001 03:09:15 -0000
From: Antonio Dias <accdias@sst.com.br>
To: imp@lists.horde.org
In-Reply-To: <1008780750.3c20c5cee5a7c@marina.horde.org>
References: <1008776670.1818.12.camel@storm> 
	<1008780750.3c20c5cee5a7c@marina.horde.org>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0 (Preview Release)
Date: 20 Dec 2001 01:06:33 -0200
Message-Id: <1008817593.2328.2.camel@storm>
Mime-Version: 1.0
Subject: Re: [imp] Auth problem with realm option

Chuck,

On Wed, 2001-12-19 at 14:52, Chuck Hagenbuch wrote:
> It is not the correct solution. You want the 'vinfo' hook (see 
> imp/config/conf.php).

Please forgive if I am asking something stupid but how to get realms
inside 'vinfo' hook since $imp is not completed filled with that
information when the hook is called?

I think that use the realm information supplied in servers.php is better
than trying to get that from vhost name.

--
Antonio Dias