[RCD] Word/line wrapping of quoted and forwarded messages (was: Roundcube deletes leading blanks upon sending - but why??)

Michael Heydekamp listuser at freexp.de
Mon Apr 22 23:23:59 CEST 2013


Am 22.04.2013 22:03, schrieb Michael Heydekamp:

> To be continued...

This is about the difference between word/line wrapping upon forwarding and
upon quoting a message.

Quoting works pretty well with Roundcube, the wrapping of the original
message is being preserved (no ugly "Kammquoting", as we call it here, is
being produced by Roundcube).

Different to forwarding a message:

If this is the original text (without quote chars)...

> 1234567890123456789012345678901234567890123456789012345678901234567890123456
> Xxxxx http://xxxxx.xx.xx xxxxxx Xxx xxxx Xxxxxxxxxxxxx xxx xxx Xxxxxx xxx
> xxxxxxxx Xxxxxxx xxxxxxxxx. Xxxxx xxxxxx xxx xxxx xxxx xxxx Xxxxxxxxxxxxx, xxx
> xxx xxx Xxxxxxx xxx xxXXX, Xxxl5 xxx. xxxxxxxxx xxxx. Xxxxxxxxxxxxxxxxxx xxxx
> xxxx xxxxxxx, xxx Xxx xxx xxxxxxxxxxxxxx Xxxxxxx xxxxxx xxxxxx.

...then it is sent like this, when being forwarded "inline" (again, without
quote chars, of course):

> 1234567890123456789012345678901234567890123456789012345678901234567890123456
> Xxxxx http://xxxxx.xx.xx xxxxxx Xxx xxxx Xxxxxxxxxxxxx xxx xxx Xxxxxx xxx
> xxxxxxxx Xxxxxxx xxxxxxxxx. Xxxxx xxxxxx xxx xxxx xxxx xxxx Xxxxxxxxxxxxx,
> xxx
> xxx xxx Xxxxxxx xxx xxXXX, Xxxl5 xxx. xxxxxxxxx xxxx. Xxxxxxxxxxxxxxxxxx xxxx
> xxxx xxxxxxx, xxx Xxx xxx xxxxxxxxxxxxxx Xxxxxxx xxxxxx xxxxxx.

Look at the second and the third line. Of course, this is because of
"line_length = 76" in main.inc.php. But this is an ugly line wrapping (and
not the original one). This is issue #1.

Surprisingly, the third line of the original text is NOT being wrapped,
although it should be according to the current logic - as it's 77 chars long
(not counting the LF). Character counting seems to be incorrect, this is
issue #2.

Anyway - now I'm wondering: Is there any logic to safely distinguish between
"written" and "forwarded" text? And if not, shouldn't Roundcube simply
precede forwarded text with quote chars (as it does when quoting the
message) just to preserve the original word/line wrapping (and to prevent
"Kammtext")?

I know, this is not a trivial issue. Just throwing in some thoughts and
questions.

Cheers,
-- 
Michael Heydekamp
Co-Admin freexp.de
Düsseldorf/Germany


More information about the dev mailing list