[imp] The line stretches too long in IMP 2.2.7

Jie Gao J.Gao@isu.usyd.edu.au
Tue, 26 Feb 2002 12:24:22 +1100 (EST)


On Mon, 25 Feb 2002, Saarah Ahsan wrote:

> Could anyone help me with a quick fix for mail messages going far beyond regular
> screen. I'v to forward it to myself to insert the desired line break. Some mail
> messages get streched hundreds of characters per line.
>
> Currently, we are using IMP 2.2.7. Not planning to upgrade IMP in next few months.
> That's why I'm looking to find a quick fix for inserting normal line break. The
> IMP is running on Solaris 8 and Sendmail 8.12.1.

I have had the same complaints coming to me. What I did to solve the problem
is to add the following underlined line to message.php3 (Line 138):

   elseif (stristr($charset, 'x-mac-cyrrilic')) {
                                        $tmsg = convert_cyr_string($tmsg, 'm', 'k');
                                }

                                $tmsg = wordwrap($tmsg, 81);
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

                                $tmsg = '<pre>' . $tmsg . '</pre>';

                                if ($textparts > 0) {
                                        $msg = $msg . '</td></tr><tr><td></td></tr><tr><td bgcolor="' .  $default->text_bg . '">
' . $tmsg;

Hope this helps.

Regards,



Jie