From d98984004c622a7706826e0e62b4edb5dd571946 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Mon, 30 Jun 2008 13:03:33 +0000 Subject: [PATCH] [muttator] catch failures while getting new messages --- content/mail.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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)