l = this.viewport.getMetaData('label');
if (l) {
if (this.isSearch(null, true)) {
- l += ' (' + this.search.mbox + ')';
+ l += ' (' + this.search.label + ')';
}
$('folderName').update(l);
}
} else if (menu.endsWith('_filter') || menu.endsWith('_filternot')) {
this.search = {
flag: elt.readAttribute('flag'),
+ label: this.viewport.getMetaData('label'),
mbox: this.folder,
not: menu.endsWith('_filternot')
};
label = this.viewport.getMetaData('label');
if (this.isSearch(null, true)) {
- label += ' (' + this.search.mbox + ')';
+ label += ' (' + this.search.label + ')';
} else {
elt = $(this.getFolderId(this.folder));
if (elt) {
}
this.viewport.reload();
} else {
- this.search = { mbox: this.folder, query: q };
+ this.search = {
+ label: this.viewport.getMetaData('label'),
+ mbox: this.folder,
+ query: q
+ };
this.loadMailbox(DIMP.conf.qsearchid);
}
},