mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 00:25:27 +00:00
ensure local folders account exists in verifyAccounts, if account wizard isn't going to run, sr=mscott 232571
This commit is contained in:
parent
68ab8460b4
commit
62bbdf628b
@ -184,6 +184,25 @@ function verifyAccounts(wizardcallback) {
|
||||
MsgAccountWizard();
|
||||
ret = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
var localFoldersExists;
|
||||
try
|
||||
{
|
||||
localFoldersExists = am.localFoldersServer;
|
||||
}
|
||||
catch (ex)
|
||||
{
|
||||
localFoldersExists = false;
|
||||
}
|
||||
|
||||
// we didn't create the MsgAccountWizard - we need to verify that local folders exists.
|
||||
if (!localFoldersExists)
|
||||
{
|
||||
messengerMigrator = Components.classes["@mozilla.org/messenger/migrator;1"].getService(Components.interfaces.nsIMessengerMigrator);
|
||||
messengerMigrator.createLocalMailAccount(false /* false, since we are not migrating */);
|
||||
}
|
||||
}
|
||||
// hack, set a time out to do this, so that the window can load first
|
||||
setTimeout("showMailIntegrationDialog();",0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user