mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fix multiple accounts could not subscribe for push on the same mailbox
This commit is contained in:
parent
1815b1e985
commit
0f799acd75
@ -1455,7 +1455,8 @@ class Imap extends Horde_Imap_Client_Socket implements Imap\PushIface
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
$metadata = explode(self::METADATA_SEPARATOR, $this->getMetadata(self::METADATA_MAILBOX, [self::METADATA_NAME])) ?: [];
|
||||
$metadata = explode(self::METADATA_SEPARATOR,
|
||||
$this->getMetadata(self::METADATA_MAILBOX, [self::METADATA_NAME])[self::METADATA_MAILBOX][self::METADATA_NAME]) ?: [];
|
||||
$my_token = $this->pushToken($account_id);
|
||||
$my_token_preg = '/^'.$this->pushToken($account_id, '[^@]+').'$/';
|
||||
foreach($metadata as $key => $token)
|
||||
|
Loading…
Reference in New Issue
Block a user