The following commands can possibly help in investigating problems related to accounts on Sailfish OS.
Sources:
- https://jollyboat.jollamobile.com/trac/wiki/SailfishCheatSheet#Accounts
- https://together.jolla.com/question/164283/general-yahoo-email-account-authentication-problem/
From Sailfish OS version 4.0.1 onwards, the commands below must be executed in privileged mode.
For this, you will need to enable the Developer mode.
1) List existing accounts and their account IDs
devel-su -p ag-tool list-accounts
Example:
ID Provider Name -- -------- ---- 24 google xxxxxxxx@gmail.com 22 email GMX-test 21 jolla yyyyyyyy 19 sailfisheas IJV 18 jabber zzzzzzzz@jabber.hot-chilli.net 17 sailfisheas-oauth wwwwwwww@jolla.com
The account IDs are numerals. In the example above, they range from 17 to 24. They are needed for the following commands.
2) List all settings of an account (ID)
devel-su -p ag-tool list-settings <accountID>
Exmple:
devel-su -p ag-tool list-settings 18
enabled = true Jolla/segregated_credentials/Jolla = 12 CredentialsId = 12 name = zzzzzzzz@jabber.hot-chilli.net default_credentials_username = zzzzzzzz@jabber.hot-chilli.net CredentialsNeedUpdate = false jabber CredentialsId = 12 telepathy/param-resource = Jolla telepathy/manager = gabble telepathy/protocol = jabber telepathy/param-account = zzzzzzzz@jabber.hot-chilli.net telepathy/param-ignore-ssl-errors = false telepathy/HasBeenOnline = true telepathy/mc-account-name = gabble/jabber/jabber_13 telepathy/NormalizedName = zzzzzzzz@jabber.hot-chilli.net enabled = true telepathy/Nickname = zzzzzzzz@jabber.hot-chilli.net auth/mechanism = password telepathy/param-port = 5222 auth/method = password telepathy/ConnectAutomatically = true telepathy/AutomaticPresence = 0;;;
3) Change the authentication method
devel-su -p ag-tool update-service <account-ID> email int:imap4/authentication=1
The command above is an example to change that authentication method to "1" which is "Login".
4) Delete an account (ID)
devel-su -p ag-tool delete-account <accountID>
5) Delete all accounts
devel-su -p ag-tool delete-account all