Fix detection of IMAP flags support in JavaScript

Fixes #2664
This commit is contained in:
Francis Lachapelle
2014-03-27 12:06:24 -04:00
parent e5fb7dc7b8
commit 6e4f776d4b
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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)
------------------
+1 -1
View File
@@ -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");