Message displayed in one line
Juergen Froehler
Juergen.Froehler@kunz-informatik.de
Tue, 09 Oct 2001 10:29:18 +0200 (CEST)
Hello,
i have the following problem, i use IMP 2.2.6 on Suse Mailserver and IE 5.x
at some mails the message in the body field is displayd in one line without a
carrige return and i have to scroll a lot.
Any hint?
MfG
Juergen Froehler
Network Administrator
Kunz Informatik GmbH
Kelterstrasse 51
72669 Unterensingen
http://www.kunz-informatik.de
mailto:juergen.froehler@kunz-informatik.de
>From ASkwar@DigitalProjects.com Date: Tue, 9 Oct 2001 10:31:12 +0200
Return-Path: <ASkwar@DigitalProjects.com>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 90330 invoked from network); 9 Oct 2001 08:56:35 -0000
Received: from mailout00.sul.t-online.com (HELO mailout00.sul.t-online.de) (194.25.134.16)
by clark.horde.org with SMTP; 9 Oct 2001 08:56:35 -0000
Received: from fwd03.sul.t-online.de
by mailout00.sul.t-online.de with smtp
id 15qsgi-0002Ha-04; Tue, 09 Oct 2001 10:56:32 +0200
Received: from teich.garten.digitalprojects.com (510044997847-0001@[217.230.124.215]) by fmrl03.sul.t-online.com
with esmtp id 15qsJ6-2JxvX6q; Tue, 9 Oct 2001 10:32:08 +0200
Received: by teich.garten.digitalprojects.com (Postfix, from userid 48)
id EC7A275D37; Tue, 9 Oct 2001 10:31:12 +0200 (CEST)
Received: from gate.eds.de ( [gate.eds.de])
as user askwar@localhost by reload.sicheres-horde.imp.lieder.ath.cx with HTTP;
Tue, 9 Oct 2001 10:31:12 +0200
Message-ID: <1002616272.3bc2b5d0be14c@reload.sicheres-horde.imp.lieder.ath.cx>
Date: Tue, 9 Oct 2001 10:31:12 +0200
From: Alexander Skwar <ASkwar@DigitalProjects.com>
To: imp@lists.horde.org
References: <1002525080.3bc15198c55ec@horde.music.dnsalias.org> <1002555863.3bc1c9d758a75@marina.your.mom> <20011009074857.D30461@teich.Garten.DigitalProjects.com>
In-Reply-To: <20011009074857.D30461@teich.Garten.DigitalProjects.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
X-Originating-IP: 192.85.16.1
X-Sender: 510044997847-0001@t-dialin.net
Subject: Re: [imp] Language setting is ignored
Zitat von Alexander Skwar <ASkwar@DigitalProjects.com>:
> with this:
I've changed the function again. The new change should be faster for
the case when the language can be found directly. Also, it uses *WAY*
more comments and thus should be easier to understand. And finally, it
tries to return with as few changes as possible and as soon as possible.
function _map($language){
// Fetch the array, so that the lookup is:
// a) shorter
// b) slightly faster (I suppose)
$aliases = $GLOBALS['nls']['aliases'];
// First check if the untranslated language can be found
if (! empty($aliases[$language])){
return $aliases[$language];
}
// Translate the $language to get broader matches
// eg. de-DE should match de_DE
$trans_lang = str_replace('-', '_', $language);
// See if we get a match for this
if (! empty($aliases[$trans_lang])){
return $aliases[$trans_lang];
}
// Next, see if we get a match if we do
// a case insensitive match
// Transform the language to upper case
$trans_lang_UC = strtoupper($trans_lang);
// Also transform all the aliases to upper case
// and check if the $trans_lang_UC can be found
$aliases_uc = array();
foreach ($aliases as $alias => $lang){
// FIXME: This can be made shorter by not assigning
// the upper-case'd alias to a new array
// However, I don't see how...
$alias_uc = strtoupper($alias);
$aliases_uc[$alias_uc] = $lang;
if (! empty($aliases_uc[$trans_lang_UC])){
return $aliases_uc[$trans_lang_UC];
}
}
// If we get that far down, the language cannot
// be found
// Return the $language
return $language;
}
Alexander Skwar
--
How to quote: http://learn.to/quote (de) http://quote.6x.to (en)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/