Bug 118846 - reply quoting cut off, if attachement is mentioned in text
Summary: reply quoting cut off, if attachement is mentioned in text
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.9.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-22 10:27 UTC by Damir Perisa
Modified: 2015-04-12 10:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example message which triggers bug (70.90 KB, application/x-gzip)
2009-10-31 08:43 UTC, Matthew Cline
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Damir Perisa 2005-12-22 10:27:34 UTC
Version:           1.9.1 (using KDE 3.5.0, Arch Linux)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.14-ARCH

if the message contains somewhere the exact name of the attachement, the attachement is linked there when message is shown in kmail.

if i try to reply to such a message by just clicking the reply feature (not selecting any text), then only the part before the first attachement name is quoted. 

expected would be that the whole text is quoted. 

workaround is: select whole text before clicking on reply. this way, kmail is quoting all selected text and this means everything correctly.

example:
email contains attachement "workshop20051110.pdf"
email body is this:

========================================================
Sali zäme,

Hier der Entwurf für <censored>bla bla bla</censored>.
workshop20051110.pdf

Bitte Feedback bis <censored>bla bla bla</censored>.

...

========================================================

kmail is showing this email the way that where the name of the attachement appears, there is a link to this file. when quoting, it looks like this:

========================================================
Mittwoch, 21. Dezember 2005 19:32 schrieb Theo Amacher:
 | Sali zäme,
 |
 | Hier der Entwurf für <censored>bla bla bla</censored>.

========================================================

and it simply stops where the attachement is mentioned. this should not be like this, because often, the attachements are mentioned in the text somewhere and quoting should include whole email.
Comment 1 Thiago Macieira 2005-12-22 14:45:51 UTC
I cannot confirm on KMail 1.9.1 revision 487700.

Neither does it link to the attachment nor does it fail to properly quote the contents.
Comment 2 Damir Perisa 2005-12-22 14:55:50 UTC
i just had a detailed view on the email i found this out...

it is generated by 

X-Mailer: Apple Mail (2.734)

and contains multiple "body parts" inbetween having the attachement.

it is structured like this in the source:

===================================================

--Apple-Mail-4-116446318
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed

Sali zäme, 
 
Hier der Entwurf für <censored>bla bla bla</censored>. 


--Apple-Mail-4-116446318
Content-Transfer-Encoding: base64
Content-Type: application/pdf; x-mac-type=50444620; x-unix-mode=0644;
	x-mac-creator=4341524F; name="workshop20051110.pdf"
Content-Disposition: inline;
	filename="workshop20051110.pdf"

gMDAwMDAgbiAKMDAwMDAzNzczOCAwMDAwMCBuIAowMDAwMDM4MDc1IDAw
MDAwIG4gCjAwMDAwMzgyOTIgMDAwMDAgbiAKMDAwMDAvVHlwZS9DYXRhbG9nCi9QYWdlcyA0IDAg
Ugo+PgplbmRvYmoKMjcgMCBvYmoKPDwKL1MgNDAKL0wg ...


--Apple-Mail-4-116446318
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	delsp=yes;
	format=flowed

Bitte Feedback bis <censored>bla bla bla</censored>. 
 
 ... 



--Apple-Mail-4-116446318
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline


--Apple-Mail-4-116446318--

===================================================

i guess, this falling appart is caused by the message itself being not properly assembled... or am i wrong?
Comment 3 Thiago Macieira 2005-12-22 15:09:42 UTC
We're quoting only the first text/plain part of the message.

I've never seen an email like that one.
Comment 4 Damir Perisa 2005-12-22 15:17:12 UTC
i get them from friends with apple (osX i think)
Comment 5 Matthew Cline 2009-10-31 08:43:35 UTC
Created attachment 37984 [details]
Example message which triggers bug

Here's an example message which causes the same problem with kmail 1.11.4 (KDE 4.2.4).  It has two PNG images right in the middle of the message body, and the message was generated by Apple Mail.  When I reply to it kmail only quotes the text up to the first PNG.
Comment 6 Laurent Montel 2015-04-12 10:22:35 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.