Bug 479228

Summary: Kmail does not respect periods in gmail account names for example firstname.lastname@gmail.com
Product: [Applications] kmail2 Reporter: lukewolf101010
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.24.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description lukewolf101010 2023-12-31 16:42:21 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
When using a GMail account with a period in the account name, the OAuth dialogue sends the account name without the period to google, if you correct the account name then you can log in and KMail will successfully verify, however this will then cause you to have to repeat this every time you reboot your computer.

The IMAP Account settings window correctly displays the period, the issue seems mostly related to how KMail Authenticates with Google's OAuth

STEPS TO REPRODUCE
1.  Use the account wizard to log into a gmail account with a period in the name
2.  Look at OAuth dialogue
3. Reboot System and notice that log in is required again

OBSERVED RESULT
Account Name is missing the period, and reauthentication must occur on system actions such as reboots and suspend/resume


EXPECTED RESULT
Account Name has period and does not require reauthentication

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  6.6.8
(available in About System)
KDE Plasma Version:  5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION