mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Disable OBJECTID capability by default due to #1640
This commit is contained in:
parent
5a63b02782
commit
c872e5afe4
|
@ -353,7 +353,7 @@ export class DomainPopupView extends AbstractViewPopup {
|
|||
'STATUS=SIZE',
|
||||
'THREAD'
|
||||
]);
|
||||
this.imapDisabled_capabilities(['METADATA','PREVIEW','STATUS=SIZE']);
|
||||
this.imapDisabled_capabilities(['METADATA','OBJECTID','PREVIEW','STATUS=SIZE']);
|
||||
forEachObjectEntry(domainDefaults, (key, value) => this[key](value));
|
||||
this.enableSmartPorts(true);
|
||||
if (oDomain) {
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
},
|
||||
"disabled_capabilities": [
|
||||
"METADATA",
|
||||
"OBJECTID",
|
||||
"PREVIEW",
|
||||
"STATUS=SIZE"
|
||||
],
|
||||
|
|
|
@ -119,12 +119,12 @@ trait Status
|
|||
}
|
||||
if (\property_exists(__TRAIT__, $name)) {
|
||||
if ('MAILBOXID' === $name) {
|
||||
// https://github.com/the-djmaze/snappymail/issues/1640
|
||||
$value = \is_array($value) ? \reset($value) : $value;
|
||||
if (\is_string($value)) {
|
||||
$this->MAILBOXID = \base64_encode($value);
|
||||
} else {
|
||||
\error_log("{$this->FullName} invalid MAILBOXID value");
|
||||
// Cyrus bug https://github.com/the-djmaze/snappymail/issues/1640
|
||||
\error_log("{$this->FullName} invalid MAILBOXID value. Disable the OBJECTID capability.");
|
||||
}
|
||||
} else {
|
||||
$this->$name = (int) $value;
|
||||
|
|
Loading…
Reference in a new issue