Bug 490985 - "[autoconfig] Unable to find the incoming server after changing from IMAP to POP3" [r=philringnalda sr=bienvenu]
This commit is contained in:
Родитель
21157e35ed
Коммит
86a48915ad
|
@ -97,10 +97,12 @@ EmailConfigWizard.prototype =
|
|||
|
||||
onLoad : function()
|
||||
{
|
||||
this._domain = "";
|
||||
this._email = "";
|
||||
this._realname = "";
|
||||
this._password = "";
|
||||
this._verifiedConfig = false;
|
||||
this._userChangedIncomingServer = false;
|
||||
this._userChangedIncomingProtocol = false;
|
||||
this._userChangedIncomingPort = false;
|
||||
this._userChangedIncomingSocketType = false;
|
||||
|
@ -159,8 +161,8 @@ EmailConfigWizard.prototype =
|
|||
|
||||
this.showConfigDetails();
|
||||
|
||||
let domain = this._email.split("@")[1];
|
||||
this.findConfig(domain, this._email);
|
||||
this._domain = this._email.split("@")[1];
|
||||
this.findConfig(this._domain, this._email);
|
||||
|
||||
// swap out buttons
|
||||
_hide("next_button");
|
||||
|
@ -332,6 +334,12 @@ EmailConfigWizard.prototype =
|
|||
}
|
||||
},
|
||||
|
||||
setIncomingServer : function()
|
||||
{
|
||||
this._userChangedIncomingServer = true;
|
||||
this._incomingState = "";
|
||||
},
|
||||
|
||||
setIncomingProtocol : function()
|
||||
{
|
||||
this._userChangedIncomingProtocol = true;
|
||||
|
@ -1274,6 +1282,9 @@ EmailConfigWizard.prototype =
|
|||
config.incoming.port = undefined;
|
||||
if (!this._userChangedIncomingSocketType)
|
||||
config.incoming.socketType = undefined;
|
||||
if (!this._userChangedIncomingServer) {
|
||||
config.incoming.hostname = undefined;
|
||||
}
|
||||
|
||||
if (this._probeAbortable)
|
||||
{
|
||||
|
@ -1284,7 +1295,10 @@ EmailConfigWizard.prototype =
|
|||
}
|
||||
else
|
||||
{
|
||||
this._guessConfig(config.incoming.hostname, config, "incoming");
|
||||
let domain = this._domain;
|
||||
if (config.incoming.hostname)
|
||||
domain = config.incoming.hostname;
|
||||
this._guessConfig(domain, config, "incoming");
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -275,6 +275,7 @@
|
|||
<textbox id="incoming_server"
|
||||
value=""
|
||||
disabled="true"
|
||||
oninput="gEmailConfigWizard.setIncomingServer()"
|
||||
class="host uri-element"/>
|
||||
</hbox>
|
||||
</hbox>
|
||||
|
|
Загрузка…
Ссылка в новой задаче