I've been trying to get Thunderbird and the home manager of Nixos to work nicely together. This seems to have been the case judging by the vast amount of config options t… (jàng ci lu gën a bari)
I've been trying to get Thunderbird and the home manager of Nixos to work nicely together. This seems to have been the case judging by the vast amount of config options that are present in the tool.
However, it seems development slowed and I was wondering whether there's a workaround to some of the problems. More precisely, nixos only does static configs - so things you know at compile time. This works great for credentials you know a priori like plain passwords or probably also encrypted password but it starts to fail once tokens start getting involved like with oauth2 (any most likely also Kerberos).
Since home manager in nix does not know the the token, it can only populate the account half way. The rest is subsequently handled by Thunderbird itself, asking you to perform the OAuth flow.
Here are two distinct issues.
1. If I create the "wrong" account - plain password instead of oauth2 - and I update the account to oauth2. Even with a restart of the entire system, Thunderbird doesn't understand that it needs to perform the authentication flow again. Even if I delete any passwords Thunderbird has stored in it's password manager.
2. I have a bunch of email accounts, work, private, university. I would like to keep them separate [...]. However, suppose I have three mail boxes within my university domain and I added all of them in this incomplete fashion as I outlined (everything done except password / authentication), Thunderbird will perform the OAuth2 flow for the first mailbox but the it won't do it for the other two. I just get
The current operation on 'Inbox' did not succeed. The mail server for account ethz-main responded: Command Error. 12.
for the other two mail boxes.
I'm well aware that a big contributor to this issue is NixOS and Home Manager. And I'm in touch with these parties trying to find a solution. What I wanted to ask from the Thunderbird / Mozilla community:
Is there a way to reinitialize the OAuth2 flow or password prompts for any account from the UI or alternatively from the shell? Because deleting the credentials didn't start it (well at least in my case) and I would like to find an explicit way to tell Thunderbird "for account x, please ignore all authentication info you have, perform the auth flow again and then update the auth details with whatever response you got." I'd prefer to be able to things like this rather than deleting and adding the account again. Especially considering that across all Accounts I have about 30Gb of data needs to be fetched every time.
Thank you for your Response and Support
AS2k