Hi Everyone,
You may run into this problem so osticket 1.12.3+ the developers made a change in the way they determine the username allow you to connect to a shared mailbox...
But if your auth username has a '\' in as mine did you wont be able to autheticate so what i did is made this change and it works now....
/include/class.mailfetch.php
Line 57:
Changed user name extraction to this code to allow logon with a username that has a \ still allowing for shared mailbox after the last ...
$usernames = explode('\', $this->ht['username'], 2);
if (count($usernames) == 3)
{
$this->authuser = $usernames[0]."\".$usernames[1];
$this->username = $usernames[2];
}
else
if (count($usernames) == 2)
{
$this->authuser = $usernames[0];
if(strpos($usernames[1],'@'))
$this->username = $usernames[1];
else
$this->authuser = $usernames[0]."\".$usernames[1];
}
else
{
$this->username = $this->ht['username'];
}