In a previous work, an adjacent team used the K9 mail source code to implement a secure mail client. The consensus among the team was that the source code was terrible in many ways. On iOS, we had written our own mail client, but on Android, for various reasons, it was decided to use an open source instead of implementing our own. Not sure what amount of research was invested in investing alternatives, but for years the team complained about the quality of K9. This was 6-8 years ago.