Bug 144382 - Boundary tag in content-type header ignorred
Summary: Boundary tag in content-type header ignorred
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: mime (show other bugs)
Version: 1.9.6
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-18 12:42 UTC by Victor-Philipp Busch
Modified: 2015-04-12 10:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Mailheader and Content (124.33 KB, image/png)
2007-04-19 20:25 UTC, Victor-Philipp Busch
Details
Mail in kmail (67.44 KB, image/png)
2007-04-19 20:25 UTC, Victor-Philipp Busch
Details
The mail itself (4.14 KB, text/plain)
2007-04-20 13:53 UTC, Victor-Philipp Busch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor-Philipp Busch 2007-04-18 12:42:21 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Debian testing/unstable Packages

My kmail moves textual content into the "X-KMail-MDN-Sent"-Tag:
...
X-KMail-MDN-Sent:  

--===============1610177105==
Laufende Nummer: 10215  #here begins the content
Name: TEST
Vorname: TEST
Email: TEST@testdomain.de
Kommentar: Wurm oder SPAM Botnetz auf Port 25 2007-4-17 11:46,        #here ends the content

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

_______________________________________________
Znad mailing list
Znad@wohnheime.studierendenwerk-hamburg.de
https://wohnheime.studentenwerk-hamburg.de/cgi-bin/mailman/listinfo/znad

--===============1610177105==--
Comment 1 Thomas McGuire 2007-04-18 22:32:25 UTC
The mail is still displayed correctly, right?

It seems that the content is not moved into the X-KMail-MDN-Sent tag at all. That tag is just empty, and happens to be the last tag, after which the content follows.

If I misunderstood something here, please reopen.
Comment 2 Victor-Philipp Busch 2007-04-19 20:25:03 UTC
Created attachment 20329 [details]
Mailheader and Content
Comment 3 Victor-Philipp Busch 2007-04-19 20:25:50 UTC
Created attachment 20330 [details]
Mail in kmail
Comment 4 Victor-Philipp Busch 2007-04-19 20:27:09 UTC
Ok, I send two screenshots with the problem.
Comment 5 Thomas McGuire 2007-04-20 12:19:46 UTC
Could you attach the message itself, not just a screenshot of it?
Comment 6 Victor-Philipp Busch 2007-04-20 13:53:36 UTC
Created attachment 20336 [details]
The mail itself

Ok, here is the mail itself.
Comment 7 Thomas McGuire 2007-04-20 15:41:59 UTC
You found an interesting bug here.
All lines in the body are in the form <field>:<value>. Because of this, KMail incorrectly assumes that the body is a header.

The header contains the following line:
>Content-Type: multipart/mixed; boundary="===============0171945327=="
Seems like KMail does not use the "boundary" information to detect the start of the body. Instead, it looks if all lines of a part start with a word followed by a colon.

Bug 88271 is somewhat related to this.
Comment 8 Björn Ruberg 2010-01-06 01:01:27 UTC
Still valid in KDE 4.3
Comment 9 Laurent Montel 2015-04-12 10:05:12 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.