Background activity

There’s a bug that causes the app to send commands to the server in a loop when Push is configured, but the server doesn’t support the IMAP IDLE extension. Disable Push (for that account) to make the app usable again.
K-9 Mail 5.802 will automatically disable Push for an account if the server doesn’t support Push.

See How to configure Push?