Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide user with list of known logins on login screen #75

Closed
okdistribute opened this issue Sep 26, 2018 · 0 comments · Fixed by #122
Closed

Provide user with list of known logins on login screen #75

okdistribute opened this issue Sep 26, 2018 · 0 comments · Fixed by #122
Labels
enhancement New feature or request

Comments

@okdistribute
Copy link
Member

from @hpk42:

Each DB is tied to exactly one account and vice versa.
dc_context is kind of a synonym for "dc_account".
The way to have multiple accounts is to have multiple DBs.
in the python bindings i happily have 2 active accounts
with their respective smtp/imap threads.

If you have a directory with different DBs and want
to show a selector of the different accounts,
say db1, db2, db3 in a particular application dir,
you can make a for-loop over the dbs, opening each, checking if
is_configured() is true, getting the "addr" config, and closing it.

There is no need to have a db-filename that is derived from "addr".
And this means that in "single account" mode (the one we are aiming to
get working) you can open "db1", start threads and don't ever stop the
threads or close/unref it unless you are really switching accounts.
You can set_config(addr), set_config(mail_pw) and dc_configure()
until success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant