add support for sharedmailbox in office365

with 4 code lines enable support when a mailbox is shared...
This commit is contained in:
Randall Mora 2022-01-07 12:30:56 -06:00 committed by GitHub
parent 60b2479389
commit d8ae40c647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -762,7 +762,12 @@ class EmailCollector extends CommonObject
if ($norsh || !empty($conf->global->IMAP_FORCE_NORSH)) {
$flags .= '/norsh';
}
//Used in shared mailbox from Office365
if (strpos($this->login,'/') != false) {
$partofauth = explode ('/',$this->login);
$flags .= '/authuser='.$partofauth[0].'/user='.$partofauth[1];
}
$connectstringserver = '{'.$this->host.':993'.$flags.'}';
return $connectstringserver;