1
0
Fork 0
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:
Afaque Hussain 2013-05-14 15:42:04 -07:00 committed by epriestley
parent 016b62a7ef
commit cab28cc91d

View file

@ -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;
} }