Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | final protected function processReceivedMail( | ||||
$sender_identifier = $parts['sender']; | $sender_identifier = $parts['sender']; | ||||
if ($sender_identifier === 'public') { | if ($sender_identifier === 'public') { | ||||
if (!PhabricatorEnv::getEnvConfig('metamta.public-replies')) { | if (!PhabricatorEnv::getEnvConfig('metamta.public-replies')) { | ||||
throw new PhabricatorMetaMTAReceivedMailProcessingException( | throw new PhabricatorMetaMTAReceivedMailProcessingException( | ||||
MetaMTAReceivedMailStatus::STATUS_NO_PUBLIC_MAIL, | MetaMTAReceivedMailStatus::STATUS_NO_PUBLIC_MAIL, | ||||
pht( | pht( | ||||
'This mail is addressed to the public email address of an object '. | 'This mail is addressed to the public email address of an object '. | ||||
'("%s"), but public replies are not enabled on this Phabricator '. | '("%s"), but public replies are not enabled on this server. An '. | ||||
'install. An administrator may have recently disabled this '. | 'administrator may have recently disabled this setting, or you '. | ||||
'setting, or you may have replied to an old message. Try '. | 'may have replied to an old message. Try replying to a more '. | ||||
'replying to a more recent message instead.', | 'recent message instead.', | ||||
$pattern)); | $pattern)); | ||||
} | } | ||||
$check_phid = $object->getPHID(); | $check_phid = $object->getPHID(); | ||||
} else { | } else { | ||||
if ($sender_identifier != $sender->getID()) { | if ($sender_identifier != $sender->getID()) { | ||||
throw new PhabricatorMetaMTAReceivedMailProcessingException( | throw new PhabricatorMetaMTAReceivedMailProcessingException( | ||||
MetaMTAReceivedMailStatus::STATUS_USER_MISMATCH, | MetaMTAReceivedMailStatus::STATUS_USER_MISMATCH, | ||||
pht( | pht( | ||||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |