ensure local folders account exists in verifyAccounts, if account wizard isn't going to run, sr=mscott 232571

This commit is contained in:
bienvenu%nventure.com 2004-01-30 19:29:13 +00:00
Родитель 68ab8460b4
Коммит 62bbdf628b
1 изменённых файлов: 19 добавлений и 0 удалений

Просмотреть файл

@ -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);