[imp] Text Wrapping Problem

Brent J. Nordquist bjn@horde.org
Wed, 14 Nov 2001 11:39:50 -0600 (CST)


---------------------- multipart/mixed attachment
On Wed, 14 Nov 2001, Marco Obaid <marco@cs.MUW.Edu> wrote:

> I did a "diff" on messages.php from 2.2.5 and 2.2.7 and noticed that
> wrap_message was removed from 2.2.7, I manually entered it.
> It looks like this now:
> 
> $tmsg = '<pre>' . wrap_message($tmsg) . '</pre>';
> 
> It seems to be working ... I don't understand why it was removed, but my 
> users are happy now and that's what counts :)

Great!  Thanks for leading me to the water.  I'll drink.  :-)  Chuck made 
this change in 2.2.6 because wrap_message() can take so long in some cases 
that the browser times out.

I'm inclined to put it back, but people will have to realize that it will
fix the wrap problem for some, and cause the timeout problem for others.  
Sites will have to decide which is worse for them.

Attached is a patch you can apply to 2.2.7 to put wrap_message() back.

-- 
Brent J. Nordquist <bjn@horde.org> N0BJN
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942

---------------------- multipart/mixed attachment
SW5kZXg6IG1lc3NhZ2UucGhwMw0KPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0K
UkNTIGZpbGU6IC9yZXBvc2l0b3J5L2ltcC9BdHRpYy9tZXNzYWdlLnBocDMs
dg0KcmV0cmlldmluZyByZXZpc2lvbiAyLjIzLjIuNjgNCmRpZmYgLXUgLXIy
LjIzLjIuNjggbWVzc2FnZS5waHAzDQotLS0gbWVzc2FnZS5waHAzCTIwMDEv
MDUvMjMgMTg6NDY6NTkJMi4yMy4yLjY4DQorKysgbWVzc2FnZS5waHAzCTIw
MDEvMTEvMTQgMTY6Mjg6MjANCkBAIC0xMzYsNyArMTM2LDcgQEANCiAJCQkJ
CSR0bXNnID0gY29udmVydF9jeXJfc3RyaW5nKCR0bXNnLCAnbScsICdrJyk7
DQogCQkJCX0NCiAgICAgICAgICAgICAgICAgDQotCQkJCSR0bXNnID0gJzxw
cmU+JyAuICR0bXNnIC4gJzwvcHJlPic7DQorCQkJCSR0bXNnID0gJzxwcmU+
JyAuIHdyYXBfbWVzc2FnZSgkdG1zZykgLiAnPC9wcmU+JzsNCiAgICAgICAg
ICAgICAgICAgDQogCQkJCWlmICgkdGV4dHBhcnRzID4gMCkgew0KIAkJCQkJ
JG1zZyA9ICRtc2cgLiAnPC90ZD48L3RyPjx0cj48dGQ+PC90ZD48L3RyPjx0
cj48dGQgYmdjb2xvcj0iJyAuICRkZWZhdWx0LT50ZXh0X2JnIC4gJyI+JyAu
ICR0bXNnOw0K
---------------------- multipart/mixed attachment--