From 6e4f776d4b7ede6acc9c54f4f1799858085b6b4c Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 27 Mar 2014 12:06:24 -0400 Subject: [PATCH] Fix detection of IMAP flags support in JavaScript Fixes #2664 --- NEWS | 1 + UI/WebServerResources/UIxFilterEditor.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index bf17a32a9..41bc95b80 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ Bug fixes - fixed possible exception when retrieving the default event reminder value on 64bit architectures (#2678) - fixed calling unescapeHTML on null variables to avoid JavaScript exceptions in Contacts module + - fixed detection of IMAP flags support on the client side (#2664) 2.2.2 (2014-03-21) ------------------ diff --git a/UI/WebServerResources/UIxFilterEditor.js b/UI/WebServerResources/UIxFilterEditor.js index 3d38c5da1..5aee2f201 100644 --- a/UI/WebServerResources/UIxFilterEditor.js +++ b/UI/WebServerResources/UIxFilterEditor.js @@ -516,7 +516,7 @@ function ensureMethodSelectRepresentation(container, methodSpan) { if (sieveCapabilities.indexOf("fileinto") > -1) { methods.push("fileinto"); } - if (sieveCapabilities.indexOf("imapflags") > -1) { + if (sieveCapabilities.indexOf("imapflags") > -1 || sieveCapabilities.indexOf("imap4flags") > -1) { methods.push("addflag"); } methods.push("stop");