[Bug 284451] New: KMail adds linebreaks / newlines to long quoted lines

Stephan Diestelhorst stephan.diestelhorst at gmail.com
Wed Oct 19 12:38:52 BST 2011


https://bugs.kde.org/show_bug.cgi?id=284451

           Summary: KMail adds linebreaks / newlines to long quoted lines
           Product: kmail2
           Version: 4.7
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: composer
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: stephan.diestelhorst at gmail.com


Version:           4.7 (using KDE 4.7.2) 
OS:                Linux

When I reply to an email that contains long lines, these lines are quoted once
(correct) and visually broken in the editor (correct, too) staying green across
the several broken down lines.

However, when I send the message (e.g. to myself), the visual linebreaks from
the window are coded into hard linebreaks in the message, which screws up the
quoting, since now only the first line is quoted.

Example:

original line:

aaaaaaa...bbbbbbb....cccccccccc.... (very long)

view in editor when replying:

<green> > aaaaaaaaaaa... (window ends)
        bbbbbbb....     (window ends)
        ccccc..... </green>

sending this creates:

> aaaaaa....\n
bbbbbb.....\n
ccccc.......\n

Which when viewed again is (properly) rendered as:

<green> > aaaaaaaaaaa... </green>\n
<black> bbbbbbb.... \n
        ccccc..... </black>

So it seems that the visual linebreak / newline in the editor component sneaks
into what is put on the wire.

Reproducible: Always

Steps to Reproduce:
* Receive an email with long lines
* Reply to that email (option "Intelligen Replies / Quotes" is on, but
unrelated??)
* Adjust window size, so that the long lines break visually
* Observe, that they are still properly quoted (green)
* Send email (e.g. to self)
* Open sent email

Actual Results:  
* Visual linebreaks from the editing window size limit have translated into
hard "\n" in the mail body
* This breaks (correctly) with the quoting logic, since the broken parts of the
line are now not prefixed with a ">" anymore and hence are not seen as parts of
the quote

Expected Results:  
* Visual linebreaks from the editing window size must not end up in the mail
text being sent


This is likely similar to https://bugs.kde.org/show_bug.cgi?id=267052, but I
think I provided the better report here ;-)

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list