When I create a Nextcloud account for someone, I’d like to automatically create an email account for that user, and automatically have Nextcloud’s mail app pull from that account. I couldn’t find any way of doing this that already exists in the wild, so it looks like I’ll have to tweak things myself to do so.
So, first: where does the server actually create accounts? It looks like it’s in lib/private/User/Database.php.
Second: Where does the mail app store accounts? I assume it’s the prefix_mail_accounts table.