mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Fix message IDs and Herald URIs.
This commit is contained in:
parent
17ea3cfab5
commit
fa38b70ba6
3 changed files with 10 additions and 4 deletions
|
@ -124,6 +124,9 @@ return array(
|
|||
// Default address to send mail "From".
|
||||
'metamta.default-address' => 'noreply@example.com',
|
||||
|
||||
// Domain used to generate Message-IDs.
|
||||
'metamta.domain' => 'example.com',
|
||||
|
||||
// When a user takes an action which generates an email notification (like
|
||||
// commenting on a Differential revision), Phabricator can either send that
|
||||
// mail "From" the user's email address (like "alincoln@logcabin.com") or
|
||||
|
|
|
@ -133,10 +133,13 @@ EOTEXT;
|
|||
*/
|
||||
|
||||
if ($this->getHeraldTranscriptURI() && $this->isFirstMailToRecipients()) {
|
||||
$manage_uri = PhabricatorEnv::getProductionURI(
|
||||
'/herald/view/differential/');
|
||||
|
||||
$xscript_uri = $this->getHeraldTranscriptURI();
|
||||
$body .= <<<EOTEXT
|
||||
|
||||
MANAGE HERALD RULES
|
||||
MANAGE HERALD DIFFERENTIAL RULES
|
||||
http://todo.com/herald/
|
||||
|
||||
WHY DID I GET THIS EMAIL?
|
||||
|
@ -217,8 +220,8 @@ EOTEXT;
|
|||
|
||||
protected function getMessageID() {
|
||||
$phid = $this->getRevision()->getPHID();
|
||||
// TODO
|
||||
return "<differential-rev-{$phid}-req@TODO.com>";
|
||||
$domain = PhabricatorEnv::getEnvConfig('metamta.domain');
|
||||
return "<differential-rev-{$phid}-req@{$domain}>";
|
||||
}
|
||||
|
||||
public function setComment($comment) {
|
||||
|
|
|
@ -112,7 +112,7 @@ DIFFERENTIAL REVISION
|
|||
AFFECTED FILES
|
||||
{$files}
|
||||
|
||||
MANAGE HERALD RULES
|
||||
MANAGE HERALD COMMIT RULES
|
||||
{$manage_uri}
|
||||
|
||||
WHY DID I GET THIS EMAIL?
|
||||
|
|
Loading…
Reference in a new issue