Don't fail out if sent-mail mailbox does not exist
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 17 Jun 2010 22:11:53 +0000 (16:11 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 25 Jun 2010 18:11:30 +0000 (12:11 -0600)
imp/js/compose-dimp.js

index 3931091..e0b9d65 100644 (file)
@@ -123,6 +123,11 @@ var DimpCompose = {
             l = k.opts.data.find(function(f) {
                 return f.v == s;
             });
+
+            if (!l) {
+                return;
+            }
+
             l = (id == 'sm')
                 ? (l.f || l.v)
                 : l.l;