summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_imap.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-15 16:48:20 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-15 16:48:20 +0000
commitd8f49eeeb83939499251b846f8122a64c2fe5a3f (patch)
tree48f79a0b57297c82e4fbd6cb511eab76b718470d /roundcubemail/program/include/rcube_imap.php
parent6e60767d24eb5ec254138a5251723d414b81e9be (diff)
Check PERMANENTFLAGS before saving MDNSent flag (#1484963, #1485163)
git-svn-id: https://svn.roundcube.net/trunk@1590 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
-rw-r--r--roundcubemail/program/include/rcube_imap.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php
index 395a1b3af..3daea0c06 100644
--- a/roundcubemail/program/include/rcube_imap.php
+++ b/roundcubemail/program/include/rcube_imap.php
@@ -346,6 +346,21 @@ class rcube_imap
/**
+ * Checks the PERMANENTFLAGS capability of the current mailbox
+ * and returns true if the given flag is supported by the IMAP server
+ *
+ * @param string Permanentflag name
+ * @return mixed True if this flag is supported
+ * @access public
+ */
+ function check_permflag($flag)
+ {
+ $flagsmap = $GLOBALS['IMAP_FLAGS'];
+ return (($imap_flag = $flagsmap[strtoupper($flag)]) && in_array_nocase($imap_flag, $this->conn->permanentflags));
+ }
+
+
+ /**
* Returns the delimiter that is used by the IMAP server for folder separation
*
* @return string Delimiter string