diff --git a/content/mail.js b/content/mail.js index f2cca1bc..842be01d 100644 --- a/content/mail.js +++ b/content/mail.js @@ -848,7 +848,16 @@ liberator.Mail = function () //{{{ var accounts = currentAccountOnly ? [this.currentAccount] : 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)