Aleksander Machniak
2014-10-04 07fa81dc4e718131319bba95cad88520b4b8224a
Fix setting flags on servers with no PERMANENTFLAGS response (#1490087)
2 files modified
11 ■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_imap_generic.php 10 ●●●● patch | view | raw | blame | history
CHANGELOG
@@ -49,6 +49,7 @@
- Don't remove links when html signature is converted to text (#1489621)
- Fix page title when using search filter (#1490023)
- Fix mbox files import
- Fix setting flags on servers with no PERMANENTFLAGS response (#1490087)
RELEASE 1.0.3
-------------
program/lib/Roundcube/rcube_imap_generic.php
@@ -2041,8 +2041,14 @@
            $flag = $this->flags[strtoupper($flag)];
        }
        if (!$flag || (!in_array($flag, (array) $this->data['PERMANENTFLAGS'])
            && !in_array('\\*', (array) $this->data['PERMANENTFLAGS']))
        if (!$flag) {
            return false;
        }
        // if PERMANENTFLAGS is not specified all flags are allowed
        if (!empty($this->data['PERMANENTFLAGS'])
            && !in_array($flag, (array) $this->data['PERMANENTFLAGS'])
            && !in_array('\\*', (array) $this->data['PERMANENTFLAGS'])
        ) {
            return false;
        }