mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01:00
Adding Email Reply support for External Users.
Summary: Adding Email reply support for external users. Test Plan: Please let me know if I have approached it correctly. Had few doubts. Will proceed after your comments :) Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin, AnhNhan, jennis.mekwan3 Maniphest Tasks: T1205 Differential Revision: https://secure.phabricator.com/D5912
This commit is contained in:
parent
016b62a7ef
commit
cab28cc91d
1 changed files with 11 additions and 0 deletions
|
@ -454,6 +454,17 @@ final class PhabricatorMetaMTAReceivedMail extends PhabricatorMetaMTADAO {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$allow_email_users = PhabricatorEnv::getEnvConfig(
|
||||||
|
'phabricator.allow-email-users');
|
||||||
|
|
||||||
|
if (!$user && $allow_email_users) {
|
||||||
|
$xusr = id(new PhabricatorExternalAccount())->loadOneWhere(
|
||||||
|
'accountType = %s AND accountDomain IS NULL and accountID = %s',
|
||||||
|
'email', $from);
|
||||||
|
|
||||||
|
$user = $xusr->getPhabricatorUser();
|
||||||
|
}
|
||||||
|
|
||||||
return $user;
|
return $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue