Path: blob/master/src/applications/metamta/receiver/PhabricatorMailReceiver.php
12256 views
<?php12abstract class PhabricatorMailReceiver extends Phobject {34private $viewer;5private $sender;67final public function setViewer(PhabricatorUser $viewer) {8$this->viewer = $viewer;9return $this;10}1112final public function getViewer() {13return $this->viewer;14}1516final public function setSender(PhabricatorUser $sender) {17$this->sender = $sender;18return $this;19}2021final public function getSender() {22return $this->sender;23}2425abstract public function isEnabled();26abstract public function canAcceptMail(27PhabricatorMetaMTAReceivedMail $mail,28PhutilEmailAddress $target);2930abstract protected function processReceivedMail(31PhabricatorMetaMTAReceivedMail $mail,32PhutilEmailAddress $target);3334final public function receiveMail(35PhabricatorMetaMTAReceivedMail $mail,36PhutilEmailAddress $target) {37$this->processReceivedMail($mail, $target);38}3940}414243