Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php
| Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | if ($sender_identifier === 'public') { | ||||
| 'address you sent mail to. Each private address is unique to the '. | 'address you sent mail to. Each private address is unique to the '. | ||||
| 'user who received the original mail. Try replying to a message '. | 'user who received the original mail. Try replying to a message '. | ||||
| 'which was sent directly to you instead.', | 'which was sent directly to you instead.', | ||||
| $pattern)); | $pattern)); | ||||
| } | } | ||||
| $check_phid = $sender->getPHID(); | $check_phid = $sender->getPHID(); | ||||
| } | } | ||||
| $expect_hash = self::computeMailHash($object->getMailKey(), $check_phid); | $mail_key = PhabricatorMetaMTAMailProperties::loadMailKey($object); | ||||
| $expect_hash = self::computeMailHash($mail_key, $check_phid); | |||||
| if (!phutil_hashes_are_identical($expect_hash, $parts['hash'])) { | if (!phutil_hashes_are_identical($expect_hash, $parts['hash'])) { | ||||
| throw new PhabricatorMetaMTAReceivedMailProcessingException( | throw new PhabricatorMetaMTAReceivedMailProcessingException( | ||||
| MetaMTAReceivedMailStatus::STATUS_HASH_MISMATCH, | MetaMTAReceivedMailStatus::STATUS_HASH_MISMATCH, | ||||
| pht( | pht( | ||||
| 'This mail is addressed to an object ("%s"), but the address is '. | 'This mail is addressed to an object ("%s"), but the address is '. | ||||
| 'not correct (the security hash is wrong). Check that the address '. | 'not correct (the security hash is wrong). Check that the address '. | ||||
| 'is correct.', | 'is correct.', | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||