Bug 251740 - Keep original charset when replying of forwarding" option garbles accented characters for multipart e-mails
Summary: Keep original charset when replying of forwarding" option garbles accented ch...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 4.10.0
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 280952 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-19 17:17 UTC by Andrey Borzenkov
Modified: 2017-01-07 21:38 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot showing the problem (210.49 KB, image/jpeg)
2011-02-07 23:08 UTC, Matěj Laitl
Details
Mail that doesn't cause the problem for me (742 bytes, application/mbox)
2011-05-15 23:10 UTC, Thomas McGuire
Details
Mail whose text is garbled upon reply / inline forward (3.16 KB, application/octet-stream)
2011-05-16 01:53 UTC, Matěj Laitl
Details
Mail whose text is garbled upon reply / inline forward (3.16 KB, application/mbox)
2011-05-16 01:54 UTC, Matěj Laitl
Details
Inline forward (21.03 KB, image/png)
2011-05-18 15:16 UTC, Christophe Marin
Details
Reply quoting (25.16 KB, image/png)
2011-05-18 15:22 UTC, Christophe Marin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Borzenkov 2010-09-19 17:17:02 UTC
Version:           2.0.89 (using Devel) 
OS:                Linux

KDE 4.5.68

I receive a multipart (signed) message with author name in headers in QP and main part with ASCII character set. Message is correctly displayed.

When I reply to this message, reply is set to ASCII as well and author name in attribution is garbled. Example:

From: Tomasz =?ISO-8859-2?B?UGF3ZbM=?= Gajc <phenomenal@wp.pl>
Content-Type: multipart/signed; micalg=PGP-SHA1;
 boundary="Sig_/lm=BYYVUSfuSZSUTAvZ37Tp"; protocol="application/pgp-signature"

--Sig_/lm=BYYVUSfuSZSUTAvZ37Tp
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Now when I hit reply, I get in composer:

On Wednesday 15 of September 2010 01:56:32 Tomasz PaweÅ Gajc wrote:

Unfortunately I do not know how to check for effective character set in composer (it is set to default); in headers of reply I get back from list I see:

Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"

On Wednesday 15 of September 2010 01:56:32 Tomasz Pawe=C5=82 Gajc wrote=
:
> Hi,

Reproducible: Always
Comment 1 Matěj Laitl 2011-02-07 23:02:00 UTC
I can confirm this bug:

when I reply to multipart ("multipart/alternative" composed of "text/plain; charset=ISO-8859-2" + "text/html; charset=ISO-8859-2") messages with accented chars in them, the characters in reply are garbled (while the original message renders okay). I'll attach a screenshot.

This does not happen when original message is not multipart, but simple text/plain or text/html

kmail2 version: Version 2.0.89 (kdepim 4.6 beta4)
Comment 2 Matěj Laitl 2011-02-07 23:08:14 UTC
Created attachment 56955 [details]
screenshot showing the problem
Comment 3 Thomas McGuire 2011-05-15 23:09:29 UTC
Hmm, I can't reproduce, I tried this with the header data you provided (will attach the full mail I tried shortly). The composer showed the non-ascii characters correctly.
Comment 4 Thomas McGuire 2011-05-15 23:10:21 UTC
Created attachment 60043 [details]
Mail that doesn't cause the problem for me
Comment 5 Matěj Laitl 2011-05-16 01:04:10 UTC
(In reply to comment #4)
> Created an attachment (id=60043) [details]
> Mail that doesn't cause the problem for me

Thanks for testing, Thomas, mail you attached doesn't cause problems even for me, but it doesn't contain accented characters in body. I will attach such mail in a moment. (however, the original description was about headers - that part is fixed now as far as I can tell)
Comment 6 Matěj Laitl 2011-05-16 01:53:24 UTC
Created attachment 60044 [details]
Mail whose text is garbled upon reply / inline forward
Comment 7 Matěj Laitl 2011-05-16 01:54:33 UTC
Created attachment 60045 [details]
Mail whose text is garbled upon reply / inline forward

Specify correct mimetype.
Comment 8 Christophe Marin 2011-05-18 15:16:32 UTC
Created attachment 60116 [details]
Inline forward

No issue with your kmail when replying or forwarding inline
Comment 9 Christophe Marin 2011-05-18 15:22:27 UTC
Created attachment 60117 [details]
Reply quoting
Comment 10 Matěj Laitl 2011-05-18 17:38:23 UTC
Christophe, thanks for testing. You motivated me to create new blank user account and guess what - it worked flawlessly there! So this must be something wrong with my config. Do you have idea where could it be before a throw away all kmail config and start from scratch?

Concerning this bug I think it could be closed as WORKSWORME because my issue to be just weird configuration problem. (i started using kontact2 last summer, so there may be just random junk in config files)
Comment 11 Christophe Marin 2011-05-18 17:48:56 UTC
I have an idea.
In the Kmail settings, composer then the charset tab. Is the "Keep original charset when replying of forwarding" box checked ?
Comment 12 Christophe Marin 2011-05-18 17:54:32 UTC
If you want to compare the working and broken config files, look for 'force-reply-charset' in ~/.kde/share/config/kmail2rc, the default if false
Comment 13 Matěj Laitl 2011-05-18 18:15:08 UTC
(In reply to comment #11)
> I have an idea.
> In the Kmail settings, composer then the charset tab. Is the "Keep original
> charset when replying of forwarding" box checked ?

That did the trick! I had that option checked and unchecking it fixed the problem. Thanks!

So the bug can be reformulated as: "Keep original charset when replying of forwarding" option garbles accented characters for multipart e-mails.

(however, I had it checked only accidentally. Maybe such feature can be removed completely if it is (partially) broken.)
Comment 14 Alex Wright 2011-07-14 10:25:47 UTC
This bug should be closed: NOTABUG
Comment 15 Matěj Laitl 2011-07-14 10:43:12 UTC
(In reply to comment #14)
> This bug should be closed: NOTABUG

No no, this bug still exists and is reproducible, and the bug title is now also up to date - thanks, Christophe.
Comment 16 Munzir Taha 2011-08-23 14:33:17 UTC
I confirm the bug. I get messages in Arabic language (mainly utf8) and when I reply or forward while the option "keep original charset when replying or forwarding (if possible)" is checked, the messages are converted to garbage.
Comment 17 Rolf Eike Beer 2011-08-28 20:10:27 UTC
*** Bug 280952 has been marked as a duplicate of this bug. ***
Comment 18 Martin Koller 2013-02-09 14:12:08 UTC
Still reproducable in KDE-4.10
Comment 19 Denis Kurz 2016-09-24 18:03:16 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 20 Denis Kurz 2017-01-07 21:38:55 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.