Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15421012
D12229.id29380.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
16 KB
Referenced Files
None
Subscribers
None
D12229.id29380.diff
View Options
diff --git a/src/applications/audit/mail/PhabricatorAuditReplyHandler.php b/src/applications/audit/mail/PhabricatorAuditReplyHandler.php
--- a/src/applications/audit/mail/PhabricatorAuditReplyHandler.php
+++ b/src/applications/audit/mail/PhabricatorAuditReplyHandler.php
@@ -22,14 +22,6 @@
'metamta.diffusion.reply-handler-domain');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- return pht('Reply to comment.');
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
$commit = $this->getMailReceiver();
$actor = $this->getActor();
diff --git a/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php b/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
--- a/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
+++ b/src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
@@ -220,6 +220,8 @@
'security.allow-outbound-http' => pht(
'This option has been replaced with the more granular option '.
'`security.outbound-blacklist`.'),
+ 'metamta.reply.show-hints' => pht(
+ 'Phabricator no longer shows reply hints in mail.'),
);
return $ancient_config;
diff --git a/src/applications/config/option/PhabricatorMetaMTAConfigOptions.php b/src/applications/config/option/PhabricatorMetaMTAConfigOptions.php
--- a/src/applications/config/option/PhabricatorMetaMTAConfigOptions.php
+++ b/src/applications/config/option/PhabricatorMetaMTAConfigOptions.php
@@ -249,14 +249,6 @@
'Domain used for reply email addresses. Some applications can '.
'override this configuration with a different domain.'))
->addExample('phabricator.example.com', ''),
- $this->newOption('metamta.reply.show-hints', 'bool', true)
- ->setBoolOptions(
- array(
- pht('Show Reply Handler Hints'),
- pht('No Reply Handler Hints'),
- ))
- ->setSummary(pht('Show hints about reply handler actions in email.'))
- ->setDescription($reply_hints_description),
$this->newOption('metamta.herald.show-hints', 'bool', true)
->setBoolOptions(
array(
diff --git a/src/applications/conpherence/mail/ConpherenceReplyHandler.php b/src/applications/conpherence/mail/ConpherenceReplyHandler.php
--- a/src/applications/conpherence/mail/ConpherenceReplyHandler.php
+++ b/src/applications/conpherence/mail/ConpherenceReplyHandler.php
@@ -27,14 +27,6 @@
return $this->getDefaultPublicReplyHandlerEmailAddress('Z');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- return pht('Reply to comment and attach files.');
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
$conpherence = $this->getMailReceiver();
$user = $this->getActor();
diff --git a/src/applications/differential/mail/DifferentialReplyHandler.php b/src/applications/differential/mail/DifferentialReplyHandler.php
--- a/src/applications/differential/mail/DifferentialReplyHandler.php
+++ b/src/applications/differential/mail/DifferentialReplyHandler.php
@@ -29,53 +29,6 @@
'metamta.differential.reply-handler-domain');
}
- /*
- * Generate text like the following from the supported commands.
- * "
- *
- * ACTIONS
- * Reply to comment, or !accept, !reject, !abandon, !resign, !reclaim.
- *
- * "
- */
- public function getReplyHandlerInstructions() {
- if (!$this->supportsReplies()) {
- return null;
- }
-
- $supported_commands = $this->getSupportedCommands();
- $text = '';
- if (empty($supported_commands)) {
- return $text;
- }
-
- $comment_command_printed = false;
- if (in_array(DifferentialAction::ACTION_COMMENT, $supported_commands)) {
- $text .= pht('Reply to comment');
- $comment_command_printed = true;
-
- $supported_commands = array_diff(
- $supported_commands, array(DifferentialAction::ACTION_COMMENT));
- }
-
- if (!empty($supported_commands)) {
- if ($comment_command_printed) {
- $text .= ', or ';
- }
-
- $modified_commands = array();
- foreach ($supported_commands as $command) {
- $modified_commands[] = '!'.$command;
- }
-
- $text .= implode(', ', $modified_commands);
- }
-
- $text .= '.';
-
- return $text;
- }
-
public function getSupportedCommands() {
$actions = array(
DifferentialAction::ACTION_COMMENT,
diff --git a/src/applications/files/mail/FileReplyHandler.php b/src/applications/files/mail/FileReplyHandler.php
--- a/src/applications/files/mail/FileReplyHandler.php
+++ b/src/applications/files/mail/FileReplyHandler.php
@@ -17,14 +17,6 @@
return $this->getDefaultPublicReplyHandlerEmailAddress('F');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- return pht('Reply to comment or !unsubscribe.');
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
$actor = $this->getActor();
$file = $this->getMailReceiver();
diff --git a/src/applications/fund/mail/FundInitiativeReplyHandler.php b/src/applications/fund/mail/FundInitiativeReplyHandler.php
--- a/src/applications/fund/mail/FundInitiativeReplyHandler.php
+++ b/src/applications/fund/mail/FundInitiativeReplyHandler.php
@@ -17,15 +17,6 @@
return $this->getDefaultPublicReplyHandlerEmailAddress('I');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- // TODO: Implement.
- return null;
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
// TODO: Implement.
return null;
diff --git a/src/applications/legalpad/mail/LegalpadReplyHandler.php b/src/applications/legalpad/mail/LegalpadReplyHandler.php
--- a/src/applications/legalpad/mail/LegalpadReplyHandler.php
+++ b/src/applications/legalpad/mail/LegalpadReplyHandler.php
@@ -17,14 +17,6 @@
return $this->getDefaultPublicReplyHandlerEmailAddress('L');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- return pht('Reply to comment or !unsubscribe.');
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
$actor = $this->getActor();
$document = $this->getMailReceiver();
diff --git a/src/applications/macro/mail/PhabricatorMacroReplyHandler.php b/src/applications/macro/mail/PhabricatorMacroReplyHandler.php
--- a/src/applications/macro/mail/PhabricatorMacroReplyHandler.php
+++ b/src/applications/macro/mail/PhabricatorMacroReplyHandler.php
@@ -22,16 +22,6 @@
'metamta.macro.reply-handler-domain');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- // TODO: Implement.
- return null;
- return pht('Reply to comment.');
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
// TODO: Implement this.
return null;
diff --git a/src/applications/maniphest/mail/ManiphestReplyHandler.php b/src/applications/maniphest/mail/ManiphestReplyHandler.php
--- a/src/applications/maniphest/mail/ManiphestReplyHandler.php
+++ b/src/applications/maniphest/mail/ManiphestReplyHandler.php
@@ -22,16 +22,6 @@
'metamta.maniphest.reply-handler-domain');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- return pht(
- 'Reply to comment or attach files, or !close, !claim, '.
- '!unsubscribe or !assign <username>.');
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
// NOTE: We'll drop in here on both the "reply to a task" and "create a
// new task" workflows! Make sure you test both if you make changes!
diff --git a/src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php b/src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php
--- a/src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php
+++ b/src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php
@@ -63,7 +63,6 @@
'metamta.reply-handler-domain');
}
- abstract public function getReplyHandlerInstructions();
abstract protected function receiveEmail(
PhabricatorMetaMTAReceivedMail $mail);
diff --git a/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php b/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php
--- a/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php
+++ b/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php
@@ -160,26 +160,6 @@
/**
- * Add a section with reply handler instructions.
- *
- * @param string Reply handler instructions.
- * @return this
- * @task compose
- */
- public function addReplySection($instructions) {
- if (!PhabricatorEnv::getEnvConfig('metamta.reply.show-hints')) {
- return $this;
- }
- if (!strlen($instructions)) {
- return $this;
- }
-
- $this->addTextSection(pht('REPLY HANDLER ACTIONS'), $instructions);
-
- return $this;
- }
-
- /**
* Add a section with a link to email preferences.
*
* @return this
@@ -197,6 +177,7 @@
return $this;
}
+
/**
* Add an attachment.
*
diff --git a/src/applications/metamta/view/__tests__/PhabricatorMetaMTAMailBodyTestCase.php b/src/applications/metamta/view/__tests__/PhabricatorMetaMTAMailBodyTestCase.php
--- a/src/applications/metamta/view/__tests__/PhabricatorMetaMTAMailBodyTestCase.php
+++ b/src/applications/metamta/view/__tests__/PhabricatorMetaMTAMailBodyTestCase.php
@@ -13,12 +13,9 @@
WHY DID I GET THIS EMAIL?
http://test.com/xscript/
-REPLY HANDLER ACTIONS
- pike
-
EOTEXT;
- $this->assertEmail($expect, true, true);
+ $this->assertEmail($expect, true);
}
public function testBodyRenderNoHerald() {
@@ -29,42 +26,20 @@
bass
trout
-REPLY HANDLER ACTIONS
- pike
-
-EOTEXT;
-
- $this->assertEmail($expect, false, true);
- }
-
-
- public function testBodyRenderNoReply() {
- $expect = <<<EOTEXT
-salmon
-
-HEADER
- bass
- trout
-
-WHY DID I GET THIS EMAIL?
- http://test.com/xscript/
-
EOTEXT;
- $this->assertEmail($expect, true, false);
+ $this->assertEmail($expect, false);
}
- private function assertEmail($expect, $herald_hints, $reply_hints) {
+ private function assertEmail($expect, $herald_hints) {
$env = PhabricatorEnv::beginScopedEnv();
$env->overrideEnvConfig('phabricator.production-uri', 'http://test.com/');
$env->overrideEnvConfig('metamta.herald.show-hints', $herald_hints);
- $env->overrideEnvConfig('metamta.reply.show-hints', $reply_hints);
$body = new PhabricatorMetaMTAMailBody();
$body->addRawSection('salmon');
$body->addTextSection('HEADER', "bass\ntrout\n");
$body->addHeraldSection('/xscript/');
- $body->addReplySection('pike');
$this->assertEqual($expect, $body->render());
}
diff --git a/src/applications/owners/mail/OwnersPackageReplyHandler.php b/src/applications/owners/mail/OwnersPackageReplyHandler.php
--- a/src/applications/owners/mail/OwnersPackageReplyHandler.php
+++ b/src/applications/owners/mail/OwnersPackageReplyHandler.php
@@ -20,10 +20,6 @@
return null;
}
- public function getReplyHandlerInstructions() {
- return null;
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
return;
}
diff --git a/src/applications/paste/mail/PasteReplyHandler.php b/src/applications/paste/mail/PasteReplyHandler.php
--- a/src/applications/paste/mail/PasteReplyHandler.php
+++ b/src/applications/paste/mail/PasteReplyHandler.php
@@ -17,14 +17,6 @@
return $this->getDefaultPublicReplyHandlerEmailAddress('P');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- return pht('Reply to comment or !unsubscribe.');
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
$actor = $this->getActor();
$paste = $this->getMailReceiver();
diff --git a/src/applications/pholio/mail/PholioReplyHandler.php b/src/applications/pholio/mail/PholioReplyHandler.php
--- a/src/applications/pholio/mail/PholioReplyHandler.php
+++ b/src/applications/pholio/mail/PholioReplyHandler.php
@@ -22,16 +22,6 @@
'metamta.pholio.reply-handler-domain');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- // TODO: Implement.
- return null;
- return pht('Reply to comment.');
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
// TODO: Implement this.
return null;
diff --git a/src/applications/phortune/mail/PhortuneCartReplyHandler.php b/src/applications/phortune/mail/PhortuneCartReplyHandler.php
--- a/src/applications/phortune/mail/PhortuneCartReplyHandler.php
+++ b/src/applications/phortune/mail/PhortuneCartReplyHandler.php
@@ -17,15 +17,6 @@
return $this->getDefaultPublicReplyHandlerEmailAddress('CART');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- // TODO: Implement.
- return null;
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
// TODO: Implement.
return null;
diff --git a/src/applications/phriction/mail/PhrictionReplyHandler.php b/src/applications/phriction/mail/PhrictionReplyHandler.php
--- a/src/applications/phriction/mail/PhrictionReplyHandler.php
+++ b/src/applications/phriction/mail/PhrictionReplyHandler.php
@@ -20,15 +20,6 @@
PhrictionDocumentPHIDType::TYPECONST);
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- // TODO: Implement.
- return null;
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
// TODO: Implement.
return null;
diff --git a/src/applications/ponder/mail/PonderQuestionReplyHandler.php b/src/applications/ponder/mail/PonderQuestionReplyHandler.php
--- a/src/applications/ponder/mail/PonderQuestionReplyHandler.php
+++ b/src/applications/ponder/mail/PonderQuestionReplyHandler.php
@@ -17,10 +17,6 @@
return $this->getDefaultPublicReplyHandlerEmailAddress('Q');
}
- public function getReplyHandlerInstructions() {
- return null;
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
// ignore this entirely for now
}
diff --git a/src/applications/releeph/mail/ReleephRequestReplyHandler.php b/src/applications/releeph/mail/ReleephRequestReplyHandler.php
--- a/src/applications/releeph/mail/ReleephRequestReplyHandler.php
+++ b/src/applications/releeph/mail/ReleephRequestReplyHandler.php
@@ -17,14 +17,6 @@
return $this->getDefaultPublicReplyHandlerEmailAddress('RERQ');
}
- public function getReplyHandlerInstructions() {
- if ($this->supportsReplies()) {
- return pht('Reply to comment.');
- } else {
- return null;
- }
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
$rq = $this->getMailReceiver();
$user = $this->getActor();
diff --git a/src/applications/repository/mail/PhabricatorRepositoryPushReplyHandler.php b/src/applications/repository/mail/PhabricatorRepositoryPushReplyHandler.php
--- a/src/applications/repository/mail/PhabricatorRepositoryPushReplyHandler.php
+++ b/src/applications/repository/mail/PhabricatorRepositoryPushReplyHandler.php
@@ -16,10 +16,6 @@
return null;
}
- public function getReplyHandlerInstructions() {
- return null;
- }
-
protected function receiveEmail(PhabricatorMetaMTAReceivedMail $mail) {
return;
}
diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
--- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
+++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
@@ -1983,10 +1983,6 @@
$action = $this->getMailAction($object, $xactions);
$reply_handler = $this->buildReplyHandler($object);
- $reply_section = $reply_handler->getReplyHandlerInstructions();
- if ($reply_section !== null) {
- $body->addReplySection($reply_section);
- }
$body->addEmailPreferenceSection();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 22, 8:13 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7528848
Default Alt Text
D12229.id29380.diff (16 KB)
Attached To
Mode
D12229: Remove reply handler instructions from email
Attached
Detach File
Event Timeline
Log In to Comment