mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Catch miss encoding exception while checking mailbox for commit bec53dc57d
This commit is contained in:
parent
9babcdf010
commit
d75c4146d2
@ -2443,12 +2443,18 @@ app.classes.mail = AppJS.extend(
|
|||||||
var rvMain = false;
|
var rvMain = false;
|
||||||
if ((obj_manager && _elems.length>1 && obj_manager.getAllSelected() && !_action.paste) || _action.id=='readall')
|
if ((obj_manager && _elems.length>1 && obj_manager.getAllSelected() && !_action.paste) || _action.id=='readall')
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
// Avoid possibly doing select all action on not desired mailbox e.g. INBOX
|
// Avoid possibly doing select all action on not desired mailbox e.g. INBOX
|
||||||
for (let n=0;n<_elems.length;n++)
|
for (let n=0;n<_elems.length;n++)
|
||||||
{
|
{
|
||||||
// drop the action if there's a mixedup mailbox found in the selected messages
|
// drop the action if there's a mixedup mailbox found in the selected messages
|
||||||
if (atob(_elems[n].id.split("::")[3]) != tree.getSelectedNode().id.split("::")[1]) return;
|
if (atob(_elems[n].id.split("::")[3]) != tree.getSelectedNode().id.split("::")[1]) return;
|
||||||
}
|
}
|
||||||
|
}catch(e)
|
||||||
|
{
|
||||||
|
// continue
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (_confirm)
|
if (_confirm)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user