Koozali.org: home of the SME Server

Webmail and long line wrapping

Bernhard Moberg

Webmail and long line wrapping
« on: April 03, 2002, 03:42:03 PM »
Hot can I make the Webmail program wrap the long lines correctly.

If I download the mail to an other mail program every thing is ok!

Please help.

Anthony Otley

Re: Webmail and long line wrapping
« Reply #1 on: April 10, 2002, 01:09:14 AM »
I would sure like an answer to this as well. We get a lot of emails from the public who all tend to use Outlook Express on the default setting to send html mail. They just type away without any carraige returns and then we can't read it without a lot of side scrolling or hitting Reply and then saving it as a Draft first.
I checked out the www.horde.org site to get some info on IMP and look in the forums there to see if there is a solution. I am using SME 5.12 with IMP 2.2.7(the default).
I found some reference to the problem. Quote below:-

I noticed in the latest version of imp thats distributed with debian 
(sid) 2.2.6 that messages that have lines bigger than the space 
provided by the browser are nolonger wraped. this is realy anoying when 
someone has typed you a message with very little or no carrage returns 
in it (ms outlook like to do this). This problem is very easy to 
replicate. I have resorted to using message.php3 from a previous 
version of imp for now in order to fix this 
 
------- Additional Comments From oryn@fsck.tv  10/05/01 06:15 -------
I found the problem its on line 139
currently :
$tmsg = '
' . $tmsg . '
';
should be
$tmsg = '
' . wrap_message($tmsg) . '
';

I have tried to find where message.php3 lives on the SME installation to no avail. Not sure if you need to modify a template. Would appreciate one of the more knowlegable people to give a few hints. This must be a common problem for people using the Webmail which is most convenient for us and tried the IMP 3 upgrade but found that the address book was not functional.

Tony

Anthony Otley

Re: Webmail and long line wrapping
« Reply #2 on: April 10, 2002, 01:56:17 AM »
Realised that the quote did not paste in correctly. Should be

I noticed in the latest version of imp thats distributed with debian (sid) 2.2.6
that messages that have lines bigger than the space provided by the browser are
nolonger wraped. this is realy anoying when someone has typed you a message with
very little or no carrage returns in it (ms outlook like to do this). This
problem is very easy to replicate. I have resorted to using message.php3 from a
previous version of imp for now in order to fix this

------- Additional Comments From oryn@fsck.tv  10/05/01 06:15 -------
I found the problem its on line 139
currently :
$tmsg = '
' . $tmsg . '
';
should be
$tmsg = '
' . wrap_message($tmsg) . '
'

Tony

Dan Brown

Re: Webmail and long line wrapping
« Reply #3 on: April 10, 2002, 04:36:38 AM »
Tony, if the address book didn't work on IMP 3, something was missing.  The instructions in my HOWTO install and configure that component, and work fine for me and (apparently) many others.  In any case, you should be able to find message.php3 in /home/httpd/html/horde/imp/.  I don't believe it's templated.

Anthony Otley

Re: Webmail and long line wrapping
« Reply #4 on: April 11, 2002, 12:01:06 AM »
Thanks to Dan Brown for the info on where to find the message.php3 file. The modification to line 139 works fine and cures the long line/nowrap problem with some html mail.
I did follow the HOWTO for upgading to IMP 3 and it does work. I liked some of the new features in IMP 3 but in it's current configuration the Turba address book does not integrate as well in to the webmail. You can't launch the address book form the compose or forward screens to insert the address and I had to be swayed by the demands of the end users who are not computer buffs. The system in IMP 2.2.7 is very easy to handle although I have got to get them to start keeping their folders tidy and keep clearing out the trash. IMP 3 was far better for archiving/cleaning up.
I notice there is a blade being posted for IMP 3. Will think of upgading when the address book integration is more user friendly
Tony

Dan Brown

Re: Webmail and long line wrapping
« Reply #5 on: April 11, 2002, 12:04:41 AM »
There's no button to pull up the address book as such; that's correct.  However, I think the "expand names" function will do what you're looking for.  Type in part of the name or address and click on Expand Names.  If what you've entered is unique, it populates the address; if not, it gives you a drop-down with all matching entries.  Wouldn't that do the job?

Bernhard Moberg

Re: Webmail and long line wrapping
« Reply #6 on: April 11, 2002, 01:17:20 PM »
Thank's all who have participated in this thread for the info,
I did the changes in line 139:

$tmsg = '
' . wrap_message($tmsg) . '
'

and now everything is ok again, and all employees at our
office can read their mail as they could before the upgrade
to SME 5.12