From a86a4bcdc361f9b47057a808b7f8fa4fccbbd1cb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 22 Jul 2020 18:58:25 +0200 Subject: [PATCH] fix account marked in tree gives only $acc_id not "$acc_id::INBOX" --- mail/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mail/js/app.js b/mail/js/app.js index ecf168e1f3..2d9257dc5b 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -411,6 +411,7 @@ app.classes.mail = AppJS.extend( // nm_value.selectedFolder is not always set, read it from foldertree, if not let foldertree = this.et2 ? this.et2.getWidgetById('nm[foldertree]') : null; let displayed_folder = (nm_value ? nm_value.selectedFolder : null) || (foldertree ? foldertree.getValue() : ''); + if (!displayed_foler.match(/::/)) displayed_folder += '::INBOX'; if (folder === displayed_folder) { // Just update the nm