1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Properly support mailing lists, with actual testing!

This commit is contained in:
epriestley 2011-04-10 10:16:14 -07:00
parent 69bfd8e598
commit e6c5d6c8ae
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,6 @@
ALTER TABLE phabricator_metamta.metamta_mailinglist
ADD UNIQUE KEY (email);
ALTER TABLE phabricator_metamta.metamta_mailinglist
ADD UNIQUE KEY (name);

View file

@ -226,7 +226,8 @@ class DifferentialCommitMessage {
if ($need_mail) {
$mail = id(new PhabricatorMetaMTAMailingList())->loadAllWhere(
'email in (%Ls)',
'(email in (%Ls)) OR (name IN (%Ls))',
$need_mail,
$need_mail);
$mail = mpull($mail, 'getPHID', 'getName') +
mpull($mail, 'getPHID', 'getEmail');