Mail.app and accountsd are taking op all CPU Mac OS 10.15 I have suddenly (did not see when it is happening and when it is stopping) CPU peaks, which is coming from Mail.app and accountsd all together

i did a screenshot of the activity monitor as well as the console, where, when this spike is happening, it is creating +/- 3500 messages a second, all the same as the one on the Screenshot shows some of it.

Screenshot Activity Monitor : https://bazinga.lu/mail1.png
Screenshot Console : https://bazinga.lu/mail2.png

Most of the messages are like this one:

Connection error changed for account:   

this for all mail accounts. Killing all the accounts and readding, or dis/enabling it did not help

Also another strange thing happening is, in the message list, some users (i found out they are in the contacts and have a different string in the contacts entry than in the one they provide in the mail header) will flash every second from one to the other name in this list. It is a flckering which is constant, let's say every second, a bit delayed the further down in the list the mail is.

Current "solution" is to stop the mail.app and restart it, it will be good for up to 10 minutes and it will happen again

any ideas ? It started when upgrading from 10.14 to 10.15

Latest Mac OS Version 10.15.1 (19B88)

Many Thanks

Tom
Same here, problem seems to be closed related to 10.15, since on Mojave I've never experienced something like that. Googling around, I found that the problem seems to be due to some "under-the-hood" logic behind account configuration.

Specifically I found that going to

Mail.app -> Settings -> Accounts -> (repeat for each account you have) -> Server Settings:

Disable the option: "Automatically Manage connection settings"

This seems to lower at 0.0 / 0.1 the CPU requirements for accountsd.