Bug 41091 - NULs in body causing mails to be partially rendered
Summary: NULs in body causing mails to be partially rendered
Status: RESOLVED INTENTIONAL
Alias: None
Product: kmail
Classification: Applications
Component: mime (show other bugs)
Version: 1.9.8
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 45123 62284 153156 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-16 08:03 UTC by pem
Modified: 2007-12-03 19:32 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pem 2002-04-16 07:48:27 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kmail
Version:           1.4 (using KDE 3.0.0 )
Severity:          normal
Installed from:    RedHat RPMs
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

A message isn't totally displayed. As I look to the source code there is more text to show. Same emails from the same guy are sometimes better displayed.
Here is the source 
(in kMail it stops after "qu'ils n'acceptent pas"):

Received: from lautre.net ([80.67.164.8]) by levillage.org ; Fri 12 Apr 2002 20:03:13 +0200
Received: (qmail 545 invoked by alias); 12 Apr 2002 18:18:40 -0000
Mailing-List: Pour toute requête administrative contactez bohwaz-wiki-help@lautre.net; Liste gérée par ezmlm
Precedence: bulk
X-No-Archive: yes
List-Post: <@lautre.net>
List-Help: <@lautre.net>
List-Unsubscribe: <@lautre.net>
List-Subscribe: <@lautre.net>
Delivered-To: mailing list @lautre.net
Received: (qmail 532 invoked by alias); 12 Apr 2002 18:18:39 -0000
Date: Fri 12 Apr 2002 20:14:59 +0200
From: BohwaZ <@free.fr>
X-Mailer: The Bat! (v1.46 Beta/3) Personal
Reply-To: BohwaZ <@free.fr>
X-Priority: 3 (Normal)
Message-ID: <145925987.20020412201459@free.fr>
To: @lautre.net
In-reply-To: <200204121807.DRT05688@vmms5.verisignmail.com>
References: <200204121807.DRT05688@vmms5.verisignmail.com>
Mime-Version: 1.0
Content-Type: text/plain;
  charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Subject: =?ISO-8859-1?Q?Re=3A_=5Bbohwaz-wiki=5D_n=E9ophyte?=
Return-Path: <bohwaz-wiki-return-92-pem=levillage.org@lautre.net>
X-Rcpt-To: <pem@levillage.org>
X-DPOP: Email supplied by temporary trial Version of DPOP
X-UIDL: 1018635828.14805
Status: RO
X-Status: O

Salut Jacques

JT> Prmi=E8re question (basique excusez-moi).
JT> Suis h=E9berg=E9 par noos dont je suis sur qu'ils n'acceptent pas=00
JT> php SQL etc...


(Submitted via bugs.kde.org)
(Called from KBugReport dialog. Fields Application KDE Version OS Compiler manually changed)
Comment 1 Till Adam 2003-06-07 23:22:34 UTC
*** Bug 45123 has been marked as a duplicate of this bug. ***
Comment 2 Ingo Klöcker 2003-08-07 16:55:36 UTC
*** Bug 62284 has been marked as a duplicate of this bug. ***
Comment 3 Till Adam 2003-10-19 20:01:25 UTC
Reproducible in cvs.
Comment 4 Michal Čihař 2004-05-10 19:03:40 UTC
Reproducible with 1.6.2
Comment 5 Michael Jahn 2004-07-25 11:53:26 UTC
... and with HEAD.
Comment 6 Christian Boltz 2005-12-18 15:39:25 UTC
Still reproduceable in KMail 1.8.2
Comment 7 Christian Boltz 2005-12-23 21:49:11 UTC
... and in KMail 1.9.1 (KDE 3.5)
Comment 8 Rodrigo Frédéric 2006-03-09 19:19:12 UTC
Still present in KMail 1.9.1 (KDE 3.5.1)
Comment 9 Thomas McGuire 2007-12-01 15:16:56 UTC
*** Bug 153156 has been marked as a duplicate of this bug. ***
Comment 10 Thomas McGuire 2007-12-01 15:18:54 UTC
Bug 153156 has a mail attached which triggers the problem.
Confirmed with 1.9.8 btw.
Comment 11 Caleb Cushing 2007-12-01 17:17:20 UTC
wow is anyone even working on this? this has been here for 5 years, it's a serious problem, I shouldn't have to check to see if my emails fully rendered every time.
Comment 12 Jonathan Marten 2007-12-03 10:47:30 UTC
Not a problem with trunk (i.e. KDE4), if it's any consolation.
Comment 13 Jonathan Marten 2007-12-03 16:10:18 UTC
The fundamental problem here is the use of QCString, which doesn't work properly with embedded nulls, in KMMessagePart::bodyDecoded() and everything that uses the results.  This has been fixed in trunk by using QByteArray instead (commit 633872), but this is an extensive change involving >20 source files.

Suggest this bug is closed as a WONTFIX (for 3.5) unless someone is willing to do the backport.
Comment 14 Thomas McGuire 2007-12-03 19:32:00 UTC
>Suggest this bug is closed as a WONTFIX (for 3.5) unless someone is willing to do the backport. 
I think so too, couldn't reproduce it with KDE4 either.