So in summary I have a situation where there there is some state on my KDE installation with either Kmail or Akonadi whereby I am unable to add my gmail account and by add my gmail account I mean going through the gmail wizard which when detecting `IMAP` should bring up the Google account web popup to sign into your gmail account.
I know that this is due to my system specifically and not with my Gmail permissions/accounts due to the fact that I have another PC where I managed to successfully add the Gmail account without any problems.
I have also attempted as much as possible to completely wipe all configs and state with Akonadi and Kmail , i.e.
rm -r ~/.local/share/akonadi/
rm -r ~/.config/akonadi*
rm -r ~/.config/kmail2rc
rm -r ~/.config/kmailsearchindexingrc
rm -r ~/.local/share/akonadi_migration_agent/
rm -r ~/.local/share/kmail2/
But it has no effect
STEPS TO REPRODUCE
1. Open KMail
2. Go to Settings -> Add Account
3. Put in details for a Gmail account (should detect as IMAP)
The "Find settings provider on internet" just instantly bugs out and no google login page is observed. If you ignore this and continue through the wizard when you try and refresh the account afterwards you get a
Resource Google Mail (mdedetrich) is broken.
Could not read the password: user rejected wallet access
"Find settings provider on internet" should not bug out instantly but instead take a few seconds (since this is meant to be doing something) and then at this point a Google login page should appear asking for your Gmail settings
Operating System: Manjaro Linux
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Kernel Version: 5.16.14-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8700K CPU @ 3.70GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2