Bug 473391

Summary: Having a special / non-ASCII character in your e-mail address fails to fill in the From field (also when answering calendar invites)
Product: [Applications] kmail2 Reporter: Matija Šuklje <matija>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.23.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Matija Šuklje 2023-08-14 22:23:17 UTC
SUMMARY

By default I (am forced to) use as my primary e-mail address <matija [at] šuklje.name>, which translates to <matija [at] xn--uklje-udb.name>. Since I changed my primary Identity in KMail to that, it stopped populating the From field when I’m writing e-mail in KMail.


STEPS TO REPRODUCE
1. set your primary Identity to have an e-mail address with a non-ASCII character (e.g. š)
2. write an e-mail – either new or as a reply

OBSERVED RESULT

Notice that the From field is empty, even though the right default Identity is automatically selected.

EXPECTED RESULT

Have the From field populate as expected.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

This is quite annoying because for every single e-mail I send, I now need to manually select the Identity.

In addition, I noticed that answering to calendar invitations through KMail started throwing errors that it cannot send the e-mail, which I suspect is connected to the issue with the From field being empty.
Comment 1 Matija Šuklje 2023-08-15 09:41:54 UTC
When interacting with a calendar invite in KMail I get the following error:

5.1.7 Bad sender address syntax 

Looking at the Outbox, this is the address it tries to send from – so clearly an issue with encoding (change “ [at] ” for “@”, of course):

<matija [at] =?utf-8?B?xaF1a2xqZQ==?=.name>

If I switch the default Identity back to <matija [at] suklje.name> it works fine.