Fix setting flags on servers with no PERMANENTFLAGS response (#1490087)
Conflicts:
CHANGELOG
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Fix setting flags on servers with no PERMANENTFLAGS response (#1490087) |
| | | |
| | | RELEASE 1.0.3 |
| | | ------------- |
| | | - Fix insert-signature command in external compose window if opened from inline compose screen (#1490074) |
| | |
| | | $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; |
| | | } |