The functionality was removed because K-9 Mail was broadcasting a lot of (potentially private) information to all apps that cared to listen.
If there’s significant demand I’m happy to add a new interface for third-party apps. This time with proper access control.
To better understand what this interface should look like, may I ask what your use case is?