Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php final class ManiphestCreateMailReceiver extends PhabricatorApplicationMailReceive..

Decoded Output download

<?php

final class ManiphestCreateMailReceiver
  extends PhabricatorApplicationMailReceiver {

  protected function newApplication() {
    return new PhabricatorManiphestApplication();
  }

  protected function processReceivedMail(
    PhabricatorMetaMTAReceivedMail $mail,
    PhutilEmailAddress $target) {

    $author = $this->getAuthor();
    $task = ManiphestTask::initializeNewTask($author);

    $from_address = $mail->newFromAddress();
    if ($from_address) {
      $task->setOriginalEmailSource((string)$from_address);
    }

    $handler = new ManiphestReplyHandler();
    $handler->setMailReceiver($task);

    $handler->setActor($author);
    $handler->setExcludeMailRecipientPHIDs(
      $mail->loadAllRecipientPHIDs());
    if ($this->getApplicationEmail()) {
      $handler->setApplicationEmail($this->getApplicationEmail());
    }
    $handler->processEmail($mail);

    $mail->setRelatedPHID($task->getPHID());
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class ManiphestCreateMailReceiver
  extends PhabricatorApplicationMailReceiver {

  protected function newApplication() {
    return new PhabricatorManiphestApplication();
  }

  protected function processReceivedMail(
    PhabricatorMetaMTAReceivedMail $mail,
    PhutilEmailAddress $target) {

    $author = $this->getAuthor();
    $task = ManiphestTask::initializeNewTask($author);

    $from_address = $mail->newFromAddress();
    if ($from_address) {
      $task->setOriginalEmailSource((string)$from_address);
    }

    $handler = new ManiphestReplyHandler();
    $handler->setMailReceiver($task);

    $handler->setActor($author);
    $handler->setExcludeMailRecipientPHIDs(
      $mail->loadAllRecipientPHIDs());
    if ($this->getApplicationEmail()) {
      $handler->setApplicationEmail($this->getApplicationEmail());
    }
    $handler->processEmail($mail);

    $mail->setRelatedPHID($task->getPHID());
  }

}

Function Calls

None

Variables

None

Stats

MD5 c836f0eb103ebe5f39ba205183959983
Eval Count 0
Decode Time 95 ms