thunderbird / thunderbird-android

K-9 Mail – Open Source Email App for Android
https://k9mail.app/
Apache License 2.0
9.47k stars 2.42k forks source link

"<unknown sender>" when the sender name has a ":" #7752

Open dddns opened 1 month ago

dddns commented 1 month ago

Checklist

App version

latest

Where did you get the app from?

None

Android version

10

Device model

samsung

Steps to reproduce

Howdy,

If the sender, has in it's client the name as "email: john" and send's an email to me, and i see it in K9, K9 translated the sendername to "unknown server", If you need any further indo let me know, i saved the messaged.

image

image

Expected behavior

Display name as it is

Actual behavior

wrong displayed information

Logs

sdfg

dddns commented 1 month ago

Hum, K9 is coding the header, the real, is indeed in quoted printable

From: =?utf-8?Q?Email:_Dire=C3=A7=C3=A3o?= direccao@-----.pt

cketti commented 1 month ago

This is an invalid encoding. The display name needs to be an RFC 5322 phrase. A : is only allowed in a quoted string or in encoded form in an RFC 2047 encoded word.

Did you use K-9 Mail to create this email? Or did some other email client create this header?