From 975ebebc24dda702d5008abf49a2f1c21009d399 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 26 Mar 2010 00:44:43 -0600 Subject: [PATCH] Fix search label if it contains UTF7-IMAP encoded characters --- imp/js/DimpBase.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 5fd7cb6db..1f5b2e568 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -555,7 +555,7 @@ var DimpBase = { l = this.viewport.getMetaData('label'); if (l) { if (this.isSearch(null, true)) { - l += ' (' + this.search.mbox + ')'; + l += ' (' + this.search.label + ')'; } $('folderName').update(l); } @@ -873,6 +873,7 @@ var DimpBase = { } 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') }; @@ -988,7 +989,7 @@ var DimpBase = { 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) { @@ -1512,7 +1513,11 @@ var DimpBase = { } 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); } }, -- 2.11.0