1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 03:47:57 +01:00

[muttator] catch failures while getting new messages

This commit is contained in:
Martin Stubenschrott
2008-06-30 13:03:33 +00:00
parent 6d8b16608f
commit d98984004c

View File

@@ -848,7 +848,16 @@ liberator.Mail = function () //{{{
var accounts = currentAccountOnly ? [this.currentAccount] var accounts = currentAccountOnly ? [this.currentAccount]
: this.getFolders("", true, false); : this.getFolders("", true, false);
accounts.forEach(function (account) { account.getNewMessages(msgWindow, null); }); accounts.forEach(function (account) {
try
{
account.getNewMessages(msgWindow, null);
}
catch (e)
{
liberator.log("Error getting messages for account " + account.prettyName + ": " + e);
}
});
}, },
getStatistics: function (currentAccountOnly) getStatistics: function (currentAccountOnly)