Bug 421251 - KMail fails to parse encoded "From:" created by "X-Mailer: Sun Java(tm) System Messenger Express"
Summary: KMail fails to parse encoded "From:" created by "X-Mailer: Sun Java(tm) Syste...
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: 5.14.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-09 22:17 UTC by Friedrich W. H. Kossebau
Modified: 2020-05-24 16:05 UTC (History)
1 user (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 Friedrich W. H. Kossebau 2020-05-09 22:17:45 UTC
Some email just arrived on kde-i18n-doc-bounces@kde.org which is displayed to be from a user "<unknown>".

Seems the From: entry is not properly parsed, or needs help to handle some broken content?
---8<---
X-Mailer: Sun Java(tm) System Messenger Express 6.2-9.09 (built Jan  8 2008)
From: =?iso-8859-1?Q?=22I=F1igo_Salvador_Azurmendi=22?=
 <xalba@clientes.euskaltel.es>
---8<---
Comment 1 Laurent Montel 2020-05-10 08:44:09 UTC
"dolphin incorrect string" mail this is this one ?
it's correct here.
I can see from in kmail
Comment 2 Laurent Montel 2020-05-10 12:23:34 UTC
Git commit 4a2f1b62a3d92d37d151f5fb433970791323b62c by Laurent Montel.
Committed on 10/05/2020 at 12:23.
Pushed by mlaurent into branch 'release/20.04'.

Add test case about bug 421251

M  +12   -0    autotests/headertest.cpp

https://commits.kde.org/kmime/4a2f1b62a3d92d37d151f5fb433970791323b62c
Comment 3 Friedrich W. H. Kossebau 2020-05-10 13:46:34 UTC
Yes, the "dolphin incorrect string" mail.

Could my locale "de_DE.UTF-8" have any effect? Or the database used? Or the file being stored in mbox for me?

Looking at the test case you added, I see a string
--- 8< ---
QByteArray("=?ISO-8859-1?Q?I=F1igo?= Salvador Azurmendi <xalba@clientes.euskaltel.es>"
--- 8< ---
where the data I see in the raw file in my maildir (?) folder has this:
--- 8< ---
From: =?iso-8859-1?Q?=22I=F1igo_Salvador_Azurmendi=22?=
 <xalba@clientes.euskaltel.es>
--- 8< ---
with the second line starting with a space.

Forgot to mention other software versions:
Qt 5.14.1
KF 5.69
KDEPIM 20.04
(openSUSE TW)
Comment 4 Laurent Montel 2020-05-10 19:17:24 UTC
I fixed some bug in kmime last week.
Perhaps it's fixed now.
not sure.
Wait and see as 5.14.1 will be release in 4 days.
Comment 5 Friedrich W. H. Kossebau 2020-05-24 16:05:56 UTC
Today I upgraded to 5.14.1, and in the full email display in the From: line the name is now properly shown ("Iñigo ..."), so might be fixed with that version indeed.

Not yet in the folder listing though.

Possibly due to being data coming from Akonadi and being cached with the old broken string? "Update Foldeer (F5)" did not have any effect here, could that be related to the folder being a maildir(?) (local-mail) one? How could I trigger an update of the folder list?