Fix capabilities when THREAD is disabled

Signed-off-by: Akhil <akhil@e.email>
This commit is contained in:
Akhil 2024-08-08 20:40:04 +05:30
parent c33dd8f856
commit b8f7f751b0

View file

@ -307,7 +307,7 @@ class ImapClient extends \MailSo\Net\NetClient
// Set active capabilities
$aList = \array_diff($aList, $this->Settings->disabled_capabilities);
if (\in_array('THREAD', $this->Settings->disabled_capabilities)) {
$aList = \array_filter($aList, function ($item) { \str_starts_with($item, 'THREAD='); });
$aList = \array_filter($aList, function ($item) { return !\str_starts_with($item, 'THREAD='); });
}
}
$this->aCapa = $aList;