mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-03 20:22:46 +01:00
bad645f1ec
Summary: Ref T7199. These were a bad idea which got copy-pasted a bunch. - There is zero reason to ever set these to different things. - Unsurprisingly, I don't know of any install which has them set to different things. Unless I've completely forgotten about it, this option was not motivated by some obscure business need, it was just a bad decision which didn't catch anyone's attention at the time. We partially remedied the mistake at some point by introducing `metamta.reply-handler-domain`, which works as a default for all applications, but never cleaned this mess up. Test Plan: Sent some mail from applications, verified it picked up appropraite reply handler domains. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7199 Differential Revision: https://secure.phabricator.com/D12231
25 lines
733 B
PHP
25 lines
733 B
PHP
<?php
|
|
|
|
final class PhabricatorMacroReplyHandler extends PhabricatorMailReplyHandler {
|
|
|
|
public function validateMailReceiver($mail_receiver) {
|
|
if (!($mail_receiver instanceof PhabricatorFileImageMacro)) {
|
|
throw new Exception('Mail receiver is not a PhabricatorFileImageMacro!');
|
|
}
|
|
}
|
|
|
|
public function getPrivateReplyHandlerEmailAddress(
|
|
PhabricatorObjectHandle $handle) {
|
|
return $this->getDefaultPrivateReplyHandlerEmailAddress($handle, 'MCRO');
|
|
}
|
|
|
|
public function getPublicReplyHandlerEmailAddress() {
|
|
return $this->getDefaultPublicReplyHandlerEmailAddress('MCRO');
|
|
}
|
|
|
|
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
|
|
// TODO: Implement this.
|
|
return null;
|
|
}
|
|
|
|
}
|