3 final class PhabricatorMailOutboundMailHeraldAdapter
4 extends HeraldAdapter
{
8 public function getAdapterApplicationClass() {
9 return 'PhabricatorMetaMTAApplication';
12 public function getAdapterContentDescription() {
13 return pht('Route outbound email.');
16 protected function initializeNewAdapter() {
17 $this->mail
= $this->newObject();
20 protected function newObject() {
21 return new PhabricatorMetaMTAMail();
24 public function isTestAdapterForObject($object) {
25 return ($object instanceof PhabricatorMetaMTAMail
);
28 public function getAdapterTestDescription() {
30 'Test rules which run when outbound mail is being prepared for '.
35 public function getObject() {
39 public function setObject(PhabricatorMetaMTAMail
$mail) {
44 public function getAdapterContentName() {
45 return pht('Outbound Mail');
48 public function isSingleEventAdapter() {
52 public function supportsRuleType($rule_type) {
54 case HeraldRuleTypeConfig
::RULE_TYPE_GLOBAL
:
55 case HeraldRuleTypeConfig
::RULE_TYPE_PERSONAL
:
57 case HeraldRuleTypeConfig
::RULE_TYPE_OBJECT
:
63 public function getHeraldName() {
64 return pht('Mail %d', $this->getObject()->getID());
67 public function supportsWebhooks() {