зеркало из https://github.com/mozilla/pjs.git
Bug 122006 Expanding (Imap / news server) account with keyboard doesn't check for new messages (Cv1-TB) msgMail3PaneWindow.js, p=Serge Gautherie,r/sr=bienvenu
This commit is contained in:
Родитель
87dbb582b1
Коммит
936f22bdea
|
@ -887,7 +887,7 @@ function delayedOnLoadMessenger()
|
|||
gStartMsgKey = (window.arguments.length > 1) ? window.arguments[1]: nsMsgKey_None;
|
||||
gSearchEmailAddress = (window.arguments.length > 2) ? window.arguments[2] : null;
|
||||
}
|
||||
|
||||
|
||||
#ifdef HAVE_SHELL_SERVICE
|
||||
var nsIShellService = Components.interfaces.nsIShellService;
|
||||
var shellService;
|
||||
|
@ -1007,11 +1007,10 @@ function loadStartFolder(initialUri)
|
|||
defaultServer.rootFolder == defaultServer.rootMsgFolder)
|
||||
defaultServer.PerformBiff(msgWindow);
|
||||
|
||||
SelectFolder(startFolder.URI);
|
||||
SelectFolder(startFolder.URI);
|
||||
}
|
||||
catch(ex)
|
||||
{
|
||||
|
||||
if (initialUri)
|
||||
{
|
||||
messenger.loadURL(window, initialUri);
|
||||
|
@ -1021,12 +1020,12 @@ function loadStartFolder(initialUri)
|
|||
dump(ex);
|
||||
dump('Exception in LoadStartFolder caused by no default account. We know about this\n');
|
||||
}
|
||||
|
||||
|
||||
// if gLoadStartFolder is true, then we must have just created a POP3 account
|
||||
// and we aren't supposed to initially download mail. (Bug #270743)
|
||||
if (gLoadStartFolder)
|
||||
MsgGetMessagesForAllServers(defaultServer);
|
||||
|
||||
|
||||
// if appropriate, send unsent messages. This may end up prompting the user
|
||||
if (MailOfflineMgr.isOnline() && MailOfflineMgr.shouldSendUnsentMessages())
|
||||
SendUnsentMessages();
|
||||
|
@ -1035,13 +1034,14 @@ function loadStartFolder(initialUri)
|
|||
function AddToSession()
|
||||
{
|
||||
try {
|
||||
var mailSession = Components.classes[mailSessionContractID].getService(Components.interfaces.nsIMsgMailSession);
|
||||
var nsIFolderListener = Components.interfaces.nsIFolderListener;
|
||||
var notifyFlags = nsIFolderListener.intPropertyChanged | nsIFolderListener.event;
|
||||
mailSession.AddFolderListener(folderListener, notifyFlags);
|
||||
} catch (ex) {
|
||||
dump("Error adding to session\n");
|
||||
}
|
||||
var mailSession = Components.classes[mailSessionContractID]
|
||||
.getService(Components.interfaces.nsIMsgMailSession);
|
||||
var nsIFolderListener = Components.interfaces.nsIFolderListener;
|
||||
var notifyFlags = nsIFolderListener.intPropertyChanged | nsIFolderListener.event;
|
||||
mailSession.AddFolderListener(folderListener, notifyFlags);
|
||||
} catch (ex) {
|
||||
dump("Error adding to session\n");
|
||||
}
|
||||
}
|
||||
|
||||
function InitPanes()
|
||||
|
|
Загрузка…
Ссылка в новой задаче