From 4da0bee2f8e442ce4b641e185c0296c326f9041d Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 29 Dec 2010 03:18:24 -0500
Subject: [PATCH] - Fallback to INBOX if this.env.mailbox is not specified in list_mailbox()

---
 program/js/app.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index fe0a75a..868919c 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1917,7 +1917,7 @@
     var url = '', target = window;
 
     if (!mbox)
-      mbox = this.env.mailbox;
+      mbox = this.env.mailbox ? this.env.mailbox : 'INBOX';
 
     if (add_url)
       url += add_url;

--
Gitblit v1.9.1