[imp] IMP Version

Brent J. Nordquist bjn@horde.org
Thu, 20 Dec 2001 13:16:43 -0600 (CST)


On Thu, 20 Dec 2001, Rocio Alfonso Pita <rozio@universalsupport.com> wrote:

>    I'd updated from horde 1.2.6 and imp 2.2.6 to horde 1.2.7 and imp
> 2.2.7.
> 
>    Function is ok, but if I examine source of message I see follow:  
> "User-Agent: IMP/PHP IMAP webmail program 2.2.6"
> 
>    why I see program 2.2.6?

Double-check the contents of imp/lib/version.php -- also, visiting 
horde/test.php3 in your browser will show the version IMP thinks it is.  
Perhaps something went wrong with your upgrade?

-- 
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 17:22:21 -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 22459 invoked from network); 20 Dec 2001 19:32:04 -0000
Received: from a.mx.sst.com.br (qmailr@200.223.199.3)
  by clark.horde.org with SMTP; 20 Dec 2001 19:32:04 -0000
Received: (qmail 1461 invoked from network); 20 Dec 2001 19:25:08 -0000
Received: from storm.sst.com.br (none@200.223.199.5)
  by a.mx.sst.com.br with SMTP; 20 Dec 2001 19:25:08 -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 17:22:21 -0200
Message-Id: <1008876141.6415.4.camel@storm>
Mime-Version: 1.0
Subject: Language selection from browser setting

I was looking the source code of horde wishing to find out why my
language browser option was not being respected by IMP. I found in
horde/lib/Lang.php at line 162 that we have :

	$lang = Lang::_map(trim($lang));

Should not it be:

	$lang = Lang::_map(strtr(trim($lang), '-', '_'));

Since some browsers send, say, "pt-BR" in place of "pt_BR"?

--
Antonio Dias