Changing IMAP server name in Server Settings does has no effect on IMAP folder address/location/URI in Inbox folder Properties
Categories
(Thunderbird :: Account Manager, defect)
Tracking
(thunderbird_esr91 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr91 | --- | wontfix |
People
(Reporter: mail, Assigned: rnons)
References
Details
(Keywords: ux-implementation-level)
Attachments
(2 files)
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Updated•6 years ago
|
Comment 3•4 years ago
|
||
This may or may not be a bug in technical terms, but it's a bug in terms of UX at least (UX-implementation-level).
Even if perhaps we're still using the original/old server name internally (so the Location property might still be technically correct, don't know), exposing that to the user without some in-place explanation appears pretty irritating.
Updated•4 years ago
|
My e-mail provider changed the IMAP server address, so I changed it accordingly in Thunderbird settings for this account.
When trying to retrieve new messages from this account, it still tries to connect to the outdated IMAP server address and fails therefore.
Thomas D. wrote, "This may or may not be a bug in technical terms...". If it is so: how can I change the IMAP server address, if the intial set one is outdated (no more in use)?
Assignee | ||
Comment 5•2 years ago
|
||
Two changes:
- On server/user name change, save to temporary .pendinghostname/.pendinguserName pref
- On start up, replace the value of .hostname/.userName with .pendinghostname/.pendinguserName or .realhostname/.realuserName
With this change, .realhostname and .realuserName becomes obsolete, related code will be removed in a follow-up patch.
Updated•2 years ago
|
Assignee | ||
Comment 6•2 years ago
|
||
Skip and fix a few tests.
Depends on D144790.
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/3b683e321528
Require a restart after changing server or user name. r=mkmelin
https://hg.mozilla.org/comm-central/rev/e7602ee8cf16
Remove realHostName/realUsername from nsIMsgIncomingServer. r=mkmelin
Updated•2 years ago
|
Comment 14•2 years ago
|
||
I haven't read the full patch but does changing the name (by the user) now also modify Folder URIs?
Internal / silent Folder URI modification can have breaking consequences on my side (QuickFolders Add-on) because it uses them to persist folder locations. see https://github.com/RealRaven2000/QuickFolders/issues/281
It would be great if any circumstances that can modify folder URIs (apart from the obvious which is renaming / moving a folder) based on server settings / modification were documented in some place.
Comment 15•2 years ago
|
||
Just an update on this - here is how I remedy the problem from an Add-ons writer's perspective. QuickFolders now also stores the account id (e.g. "account1" together with the URI to store its folder shortcuts; once the upgrade to Thunderbird 102 happens (or a server is renamed), Thunderbird can detect invalid URIs and tries to rebuild the URI with the new root and fixes them quietly. Note that when you use Services.io.newURI
to generate a new valid uri from the old one, you cannot use "imap" unless the folder exists for certain - POP3 and Local host have no such problem (hence the replacement with http)
function reconstructUri(e) {
let ac = MailServices.accounts.getAccount(e.account), acType = "N/A";
if (ac && ac.incomingServer) {
acType = ac.incomingServer.type || "unknown";
if (acType!="im") { // do not reconnect to chat accounts - these are not supported.
let oldUri = e.uri.replace("imap://", "http://"); // non-existent imap URIs throw!!
let tempUri = Services.io.newURI(oldUri); // generate a fresh URI to retrieve path portion
// or oldUri.filePath - not sure whether query params make sense or are allowed for folder URIS
return ac.incomingServer.serverURI + tempUri.pathQueryRef;
}
}
throw new Error(`Failed to reconstruct URL for ${e.uri} of account ${e.account} - account type ${acType}`);
}
Description
•