Closed Bug 1962392 Opened 1 year ago Closed 1 year ago

Account order change not working

Categories

(Thunderbird :: Account Manager, defect)

Thunderbird 137
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: major-mayer, Unassigned)

References

Details

(Keywords: regression, regressionwindow-wanted)

Steps to reproduce:

I go to the account settings and change the order of the accounts.

Actual results:

In the account list, it looks like the order has been changed, but if you go to the main mail tab, the order is still the same.
Once you close and re-open the account settings tab, the order is reset to what it was before.

Logs (there should be a separate textbox for this, IMO):
thunderbird  ✔
console.error: services.settings:
Remote Settings startup changesets bundle could not be extracted (TypeError: serverInfo.capabilities.attachments is undefined)
console.error: (new UnknownCollectionError("Unknown Collection "thunderbird/url-parser-default-unknown-schemes-interventions"", "resource://services-settings/RemoteSettingsClient.sys.mjs", 189))
console.error: services.settings:
Message: UnknownCollectionError: Unknown Collection "thunderbird/moz-essential-domain-fallbacks"
Stack:
UnknownCollectionError@resource://services-settings/RemoteSettingsClient.sys.mjs:189:5
sync@resource://services-settings/RemoteSettingsClient.sys.mjs:635:13

JavaScript error: moz-extension://6a4ecd70-abaa-4319-9f11-4cec29acfdbc/punycode/punycode.js, line 443: ReferenceError: module is not defined
console.log: WebExtensions: IETNG: importMboxModule.js -v6
console.log: "IETNG: mboximportExport.js -v11"
console.warn: Calendar: (new TypeError("item.startDate is null", "resource:///modules/calendar/CalStorageItemModel.sys.mjs", 697))
JavaScript error: chrome://messenger/content/AccountManager.js, line 1669: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMsgAccountManager.reorderAccounts]

Expected results:

The account order should change persistently.
This worked before, but seems to be a regression in recent versions.

This works for me with 138.0b4 on Ubuntu.

Hmm, I don't know where it comes from then...
I am using 137.0.2 from the Manjaro Unstable repos, which contain mostly Arch's packages.
Maybe it gets fixed when the next update is propagated.

Works for me as well. Tried Help | Troubleshoot mode?

Yes I just tried that and it still doesn't allow me to change the account order.

Hello,

I have tried to recreate this issue on Ubuntu 24 on the following versions and couldn’t reproduce it:
137.0( 20250327075402)
138.0b1(20250401020013)
138.0b4(20250422130245)

Please check your `mail.accountmanager.accounts´ pref. Maybe it's somehow off.

Hmm, it says: "account9,account4,account8,account19,account22,account17,account2,account12,account24,account26,account27".
If I change the order there and restart Thunderbird, the change is actually persisted.
But still no luck using the account settings UI.

Do you see all of those (and only all of those) listed in the account manager? Yes, it's a bit of detective work...

major-mayer: can you answer comment 8?

Yeah, sorry for the delay.
Actually I discovered that when I remove account22, account2 and account12 nothing happened, except that I am now able to change the account order again.
No idea how these accounts appeared in the list in the first place, but it seems like they are now orphans.

So for me this issue is fixed, but I think in general it would be good to automatically clean these orphan accounts or at least notify the user, if it's expected to break other parts of the application (like account order changes).

No idea how it ended up like that.
Do you know what those accounts were?

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME

Not really, is there a way to find out?

In the config editor if you search for account22 maybe the account settings were also left behind so you could see e.g. name etc.

Hmm so account22 seems to be a leftover of an account that I synced via the OWL add on for a while:

mail.account.account22.identities id11
mail.account.account22.server server19

mail.server.server19.nextFilterTime 28656888
mail.server.server19.oauth2.issuer outlook.office365.com
mail.server.server19.oauth2.scope https://outlook.office365.com/owa/
mail.server.server19.owa_url https://outlook.office.com/owa/
mail.server.server19.secondsToLeaveUnavailable 31536000
mail.server.server19.socketType 3
mail.server.server19.spamActionTargetAccount owl://kontakt%example.com@outlook.office365.com
mail.server.server19.spamActionTargetFolder owl://kontakt%example.com@outlook.office365.com/Junk%20Email
[...]

No idea about account2, which only lists the corresponding server2:

mail.server.server2.directory /home/laurenz/.thunderbird/014k80ay.IETimport/Mail/Local Folders
mail.server.server2.directory-rel [ProfD]Mail/Local Folders
mail.server.server2.hostname Local Folders
mail.server.server2.lastFilterTime 29131761
mail.server.server2.name Lokale Ordner
mail.server.server2.nextFilterTime 29131771
mail.server.server2.spamActionTargetAccount mailbox://nobody@Local%20Folders
mail.server.server2.storeContractID @mozilla.org/msgstore/berkeleystore;1
mail.server.server2.type none
mail.server.server2.userName nobody

Same thing with account12 which references server9:

mail.server.server9.directory-rel [ProfD]Mail/smart mailboxes
mail.server.server9.hidden true
mail.server.server9.hostname smart mailboxes
mail.server.server9.name Gruppierte Ordner
mail.server.server9.storeContractID @mozilla.org/msgstore/berkeleystore;1
mail.server.server9.type none
mail.server.server9.userName nobody

Should I do some cleanup with any of these leftovers?

The two first look like account created by add-ons (Owl, Import Export tools).
You can clean up or not, they don't do much harm.

All right, thanks for the confirmation and your help.

See Also: → 1984313
You need to log in before you can comment on or make changes to this bug.