mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-01 17:38:24 +01:00
ba7723d905
Summary: Adds feed, email, notifications, comments, partial editing, subscriptions, enable/disable, flags and crumbs to Macro. Test Plan: {F26839} {F26840} {F26841} {F26842} {F26843} {F26844} {F26845} Reviewers: vrana, btrahan, chad Reviewed By: vrana CC: aran Maniphest Tasks: T2157, T175, T2104 Differential Revision: https://secure.phabricator.com/D4141
40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
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');
|
|
}
|
|
|
|
public function getReplyHandlerDomain() {
|
|
return PhabricatorEnv::getEnvConfig(
|
|
'metamta.macro.reply-handler-domain');
|
|
}
|
|
|
|
public function getReplyHandlerInstructions() {
|
|
if ($this->supportsReplies()) {
|
|
// TODO: Implement.
|
|
return null;
|
|
return "Reply to comment.";
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
|
|
// TODO: Implement this.
|
|
return null;
|
|
}
|
|
|
|
}
|