Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/mail/PonderQuestionCreateMailReceiver.php
| <?php | <?php | ||||
| final class PonderQuestionCreateMailReceiver extends PhabricatorMailReceiver { | final class PonderQuestionCreateMailReceiver | ||||
| extends PhabricatorApplicationMailReceiver { | |||||
| public function isEnabled() { | protected function newApplication() { | ||||
| $app_class = 'PhabricatorPonderApplication'; | return new PhabricatorPonderApplication(); | ||||
| return PhabricatorApplication::isClassInstalled($app_class); | |||||
| } | |||||
| public function canAcceptMail(PhabricatorMetaMTAReceivedMail $mail) { | |||||
| $ponder_app = new PhabricatorPonderApplication(); | |||||
| return $this->canAcceptApplicationMail($ponder_app, $mail); | |||||
| } | } | ||||
| protected function processReceivedMail( | protected function processReceivedMail( | ||||
| PhabricatorMetaMTAReceivedMail $mail, | PhabricatorMetaMTAReceivedMail $mail, | ||||
| PhabricatorUser $sender) { | PhabricatorUser $sender) { | ||||
| $title = $mail->getSubject(); | $title = $mail->getSubject(); | ||||
| if (!strlen($title)) { | if (!strlen($title)) { | ||||
| Show All 29 Lines | |||||