From 829615ec5d870a73f67136956facbaabac6a40a1 Mon Sep 17 00:00:00 2001 From: Boris Gulay Date: Sun, 16 Oct 2016 13:32:02 +0300 Subject: [PATCH] Pass mbox name with switch command. --- ident_switch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ident_switch.js b/ident_switch.js index 8bbcfb7..f64090c 100644 --- a/ident_switch.js +++ b/ident_switch.js @@ -53,8 +53,8 @@ function plugin_switchIdent_secure_onChange(e) { } function plugin_switchIdent_switch(val) { - console.log("qwe1"); - rcmail.http_post('plugin.ident_switch.switch', { '_ident-id': val }); + console.log(rcmail.env.mailbox); + rcmail.http_post('plugin.ident_switch.switch', { '_ident-id': val, '_mbox': rcmail.env.mailbox }); } function plugin_switchIdent_fixIdent(iid) {