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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user