Auto create account on desktop client start

Hi,

it would be nice to have an auto create account command line options on the desktop client. It should auto create an account on a server, if there does not already exist an account on that server without opening a window and then exit:

deltachat --auto-create-server delta.example.com --auto-create-username "Mr. X"

This would improve deploying the client in small business environments: The command could be run on user login. Users could just start the desktop client afterwards and would be ready to go.

1 Like

Sounds interesting, but how would you then get in contact with the people you want to contact? That still requires action.

Well, did not think about it, yet.

Maybe:

deltachat --auto-create-server delta.example.com --auto-create-username "Mr. X" --auto-create-publish-contact "https://i.delta.chat/#3..." --auto-create-get-contacts-url "https://contacts.delta.example.com/contacts.txt"

–auto-create-publish-contact: after creating the account, send the account url to specified contact (an admin)
–auto-create-get-contacts-url: download a text file with one contact link per line and import them. Text file can be updated by an admin.

It might be simpler then to just expose the whole Core API (JSON-RPC: RawClient | @deltachat/jsonrpc-client).

Or just write a small script which prepares the accounts directory how you want to have it.
Could use the jsonrpc API (via deltachat-rpc-server) to set up the accounts and then just move them to where delta chat desktop expects them.

2 Likes