1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 21:32:43 +01:00

Improve threading of new and old Differential mail

Summary: Ref T2222. This should help new mail thread properly with old mail.

Test Plan: Will push.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2222

Differential Revision: https://secure.phabricator.com/D8367
This commit is contained in:
epriestley 2014-02-27 15:16:22 -08:00
parent e62c7321c2
commit 647d52f248

View file

@ -755,6 +755,12 @@ final class DifferentialTransactionEditor
return PhabricatorEnv::getEnvConfig('metamta.differential.subject-prefix'); return PhabricatorEnv::getEnvConfig('metamta.differential.subject-prefix');
} }
protected function getMailThreadID(PhabricatorLiskDAO $object) {
// This is nonstandard, but retains threading with older messages.
$phid = $object->getPHID();
return "differential-rev-{$phid}-req";
}
protected function buildReplyHandler(PhabricatorLiskDAO $object) { protected function buildReplyHandler(PhabricatorLiskDAO $object) {
return id(new DifferentialReplyHandler()) return id(new DifferentialReplyHandler())
->setMailReceiver($object); ->setMailReceiver($object);