Message displayed in one line

Juergen Froehler Juergen.Froehler@kunz-informatik.de
Tue, 02 Oct 2001 07:48:41 +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 admin@networkessence.net Date: Tue,  2 Oct 2001 01:36:40 -0500
Return-Path: <admin@networkessence.net>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 91826 invoked from network); 2 Oct 2001 06:41:14 -0000
Received: from www.networkessence.net (HELO ns.networkessence.net) (216.40.211.25)
  by clark.horde.org with SMTP; 2 Oct 2001 06:41:14 -0000
Received: (from root@localhost)
	by ns.networkessence.net (8.10.2/8.10.2) id f926aeu22681
	for imp@lists.horde.org; Tue, 2 Oct 2001 01:36:40 -0500
From: Alex Leverington <admin@networkessence.net>
Received: from 65.112.179.69 ( [65.112.179.69])
	as user admin@127.0.0.1 by www.networkessence.net with HTTP;
	Tue,  2 Oct 2001 01:36:40 -0500
Message-ID: <1002004600.3bb960781438c@www.networkessence.net>
Date: Tue,  2 Oct 2001 01:36:40 -0500
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
X-Originating-IP: 65.112.179.69
Subject: Suggestion Images Example - 2.3.7



I have a suggestion for the messageindex, it's only cosmetic, but it looks real 
good. It's a java script rollover function for the rows of mail in the 
messageindex. It's in addition to the other rollovers that have been added. 
There might be a way to do this in CSS, but I'm fairly sure javascript has to 
be used. Basically it changes the bgcolor of a row causing a 'highlighted' 
effect when a person does a mouseover on the row. The way I've changed the 
code, there is a different color depending on the message type 
(seen/unseen/etc).

Below are the changes I made, but I would also like to ask how can I establish 
my own global variables for customized scripting? Secondly, does anyone know a 
better way to do this rollover trick with IMP's code structure?  Here is are 
screen captures of the result:

Unseen message: http://www.networkessence.net/images/imp/unseen.jpg
Seen messages: http://www.networkessence.net/images/imp/seen.jpg
Answered messages: http://www.networkessence.net/images/imp/answered.jpg
Deleted messages: http://www.networkessence.net/images/imp/deleted.jpg

Here it goes:

I added the code below to the beginning 
of /horde/imp/templates/mailbox/message_summaries.php

<?
require_once
('/home/sites/www.networkessence.net/web/horde/imp/config/html.php'); 
if ($bg=='deleted') { $hl_bg = '#777777'; $hl_bg_undo = $css['.deleted']
['background-color']; }
else
if ($bg=='important') { $hl_bg = '#ffeeee'; $hl_bg_undo = $css['.important']
['background-color']; }
else
if ($bg=='unseen') { $hl_bg = '#ccccff'; $hl_bg_undo = $css['.unseen']
['background-color']; }
else
if ($bg=='answered') { $hl_bg = '#99ee99'; $hl_bg_undo = $css['.answered']
['background-color']; }
else
if ($bg=='quoted') { $hl_bg = '#330066'; $hl_bg_undo = $css['.quoted']
['background-color']; }
else { $hl_bg = '#e5e5e5'; $hl_bg_undo = '#ffffff'; };
?>

Then, on the line that has:
<tr class="<?= $bg ?>">
I replaced with:
<tr class="<?= $bg ?>" onmouseover="javascript:style.background='<?= $hl_bg ?
>'" onmouseout="javascript:style.background='<?= $hl_bg_undo ?>'">

Now, when I mouse over a message, it turns to a pretty color and acts 
highlighted.



Regards,

Alex Leverington
admin@networkessence.net

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/