} else {
switch (li.readAttribute('ftype')) {
case 'container':
- case 'vcontainer':
+ case 'scontainer':
e.stop();
break;
title = ob.t || ob.m;
if (ob.v) {
- ftype = ob.co ? 'vcontainer' : 'virtual';
+ ftype = ob.co ? 'scontainer' : 'virtual';
title = label;
} else if (ob.co) {
- ftype = 'container';
+ if (ob.n) {
+ ftype = 'scontainer';
+ title = label;
+ } else {
+ ftype = 'container';
+ }
/* This is a dummy container element to display child elements of
* a mailbox displayed in the 'specialfolders' section. */
- if (ob.s) {
+ if (ob.dummy) {
fid += '_special';
- ob.s = false;
cname += ' specialContainer';
}
} else {
div.removeClassName('exp').addClassName(ob.cl || 'folderImg');
tmp = Object.clone(ob);
- tmp.co = true;
+ tmp.co = tmp.dummy = true;
+ tmp.s = false;
this.createFolder(tmp);
}
} else {
* 'i' (icon) = A user defined icon to use. [string] [DEFAULT: none]
* 'l' (label) = The folder display label. [string] [DEFAULT: 'm' val]
* 'm' (mbox) = The mailbox value. [string]
+ * 'n' (non-imap) = A non-IMAP element? [boolean] [DEFAULT: no]
* 'pa' (parent) = The parent element. [string] [DEFAULT:
* DIMP.conf.base_mbox]
* 'po' (polled) = Is the element polled? [boolean] [DEFAULT: no]
if ($elt['container']) {
$ob->cl = 'exp';
$ob->co = 1;
+ if ($elt['nonimap']) {
+ $ob->n = 1;
+ }
} else {
if ($elt['polled']) {
$ob->u = intval($elt['unseen']);
* 'msgs' - (integer) The number of total messages in the element (if
* polled).
* 'name' - (string) A html-ized version of 'label'.
+ * 'nonimap' - (boolean) Is this a non-IMAP element?
* 'parent' - (array) The parent element value.
* 'polled' - (boolean) Show polled information?
* 'recent' - (integer) The number of new messages in the element (if
'level' => $mailbox['c'],
'mbox_val' => htmlspecialchars($mailbox['v']),
'name' => htmlspecialchars($mailbox['l']),
+ 'nonimap' => $this->_isNonIMAPElt($mailbox),
'parent' => $mailbox['p'],
'polled' => false,
'recent' => 0,