Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
Show First 20 Lines • Show All 334 Lines • ▼ Show 20 Lines | final class PhabricatorMetaMTAMail | ||||
* delivered by the MetaMTA daemon. | * delivered by the MetaMTA daemon. | ||||
* | * | ||||
* @return this | * @return this | ||||
*/ | */ | ||||
public function saveAndSend() { | public function saveAndSend() { | ||||
return $this->save(); | return $this->save(); | ||||
} | } | ||||
/** | |||||
* @return this | |||||
*/ | |||||
public function save() { | public function save() { | ||||
if ($this->getID()) { | if ($this->getID()) { | ||||
return parent::save(); | return parent::save(); | ||||
} | } | ||||
// NOTE: When mail is sent from CLI scripts that run tasks in-process, we | // NOTE: When mail is sent from CLI scripts that run tasks in-process, we | ||||
// may re-enter this method from within scheduleTask(). The implementation | // may re-enter this method from within scheduleTask(). The implementation | ||||
// is intended to avoid anything awkward if we end up reentering this | // is intended to avoid anything awkward if we end up reentering this | ||||
▲ Show 20 Lines • Show All 831 Lines • Show Last 20 Lines |