|
|
@ -2041,8 +2041,14 @@ class rcube_imap_generic
|
|
|
|
$flag = $this->flags[strtoupper($flag)];
|
|
|
|
$flag = $this->flags[strtoupper($flag)];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!$flag || (!in_array($flag, (array) $this->data['PERMANENTFLAGS'])
|
|
|
|
if (!$flag) {
|
|
|
|
&& !in_array('\\*', (array) $this->data['PERMANENTFLAGS']))
|
|
|
|
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;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|