1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

Fully remove all the public-create-mail settings

Summary: Fixes T5703. These have been unused in production for a while and the new stuff seems good.

Test Plan: Mostly `grep`.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5703

Differential Revision: https://secure.phabricator.com/D12949
This commit is contained in:
epriestley 2015-05-20 14:21:33 -07:00
parent 985eb26c7e
commit f99c7beb90
5 changed files with 10 additions and 93 deletions

View file

@ -171,6 +171,10 @@ final class PhabricatorExtraConfigSetupCheck extends PhabricatorSetupCheck {
'Phabricator no longer supports global customization of monospaced '. 'Phabricator no longer supports global customization of monospaced '.
'fonts.'); 'fonts.');
$public_mail_reason = pht(
'Inbound mail addresses are now configured for each application '.
'in the Applications tool.');
$ancient_config += array( $ancient_config += array(
'phid.external-loaders' => 'phid.external-loaders' =>
pht( pht(
@ -256,6 +260,11 @@ final class PhabricatorExtraConfigSetupCheck extends PhabricatorSetupCheck {
'search.engine-selector' => pht( 'search.engine-selector' => pht(
'Phabricator now automatically discovers available search engines '. 'Phabricator now automatically discovers available search engines '.
'at runtime.'), 'at runtime.'),
'metamta.files.public-create-email' => $public_mail_reason,
'metamta.maniphest.public-create-email' => $public_mail_reason,
'metamta.maniphest.default-public-author' => $public_mail_reason,
'metamta.paste.public-create-email' => $public_mail_reason,
); );
return $ancient_config; return $ancient_config;

View file

@ -156,20 +156,6 @@ final class PhabricatorFilesConfigOptions
"Set this to a valid Amazon S3 bucket to store files there. You ". "Set this to a valid Amazon S3 bucket to store files there. You ".
"must also configure S3 access keys in the 'Amazon Web Services' ". "must also configure S3 access keys in the 'Amazon Web Services' ".
"group.")), "group.")),
$this->newOption(
'metamta.files.public-create-email',
'string',
null)
->setLocked(true)
->setLockedMessage(pht(
'This configuration is deprecated. See description for details.'))
->setSummary(pht('DEPRECATED - Allow uploaded files via email.'))
->setDescription(
pht(
'This config has been deprecated in favor of [[ '.
'/applications/view/PhabricatorFilesApplication/ | '.
'application settings ]], which allow for multiple email '.
'addresses and other functionality.')),
$this->newOption( $this->newOption(
'metamta.files.subject-prefix', 'metamta.files.subject-prefix',
'string', 'string',

View file

@ -296,57 +296,6 @@ EOTEXT
'string', 'string',
'[Maniphest]') '[Maniphest]')
->setDescription(pht('Subject prefix for Maniphest mail.')), ->setDescription(pht('Subject prefix for Maniphest mail.')),
$this->newOption(
'metamta.maniphest.public-create-email',
'string',
null)
->setLocked(true)
->setLockedMessage(pht(
'This configuration is deprecated. See description for details.'))
->setSummary(pht('DEPRECATED - Allow filing bugs via email.'))
->setDescription(
pht(
'This config has been deprecated in favor of [[ '.
'/applications/view/PhabricatorManiphestApplication/ | '.
'application settings ]], which allow for multiple email '.
'addresses and other functionality.'."\n\n".
'You can configure an email address like '.
'"bugs@phabricator.example.com" which will automatically create '.
'Maniphest tasks when users send email to it. This relies on the '.
'"From" address to authenticate users, so it is is not completely '.
'secure. To set this up, enter a complete email address like '.
'"bugs@phabricator.example.com" and then configure mail to that '.
'address so it routed to Phabricator (if you\'ve already '.
'configured reply handlers, you\'re probably already done). See '.
'"Configuring Inbound Email" in the documentation for more '.
'information.')),
$this->newOption(
'metamta.maniphest.default-public-author',
'string',
null)
->setLocked(true)
->setLockedMessage(pht(
'This configuration is deprecated. See description for details.'))
->setSummary(pht(
'DEPRECATED - Username anonymous bugs are filed under.'))
->setDescription(
pht(
'This config has been deprecated in favor of [[ '.
'/applications/view/PhabricatorManiphestApplication/ | '.
'application settings ]], which allow for multiple email '.
'addresses each with its own default author, and other '.
'functionality.'."\n\n".
'If you enable `metamta.maniphest.public-create-email` and create '.
'an email address like "bugs@phabricator.example.com", it will '.
'default to rejecting mail which doesn\'t come from a known user. '.
'However, you might want to let anyone send email to this '.
'address; to do so, set a default author here (a Phabricator '.
'username). A typical use of this might be to create a "System '.
'Agent" user called "bugs" and use that name here. If you specify '.
'a valid username, mail will always be accepted and used to '.
'create a task, even if the sender is not a system user. The '.
'original email address will be stored in an `From Email` field '.
'on the task.')),
$this->newOption( $this->newOption(
'maniphest.priorities.unbreak-now', 'maniphest.priorities.unbreak-now',
'int', 'int',

View file

@ -684,19 +684,7 @@ final class ManiphestTaskEditController extends ManiphestController {
'tokenizerID' => $project_tokenizer_id, 'tokenizerID' => $project_tokenizer_id,
)); ));
$description_control = new PhabricatorRemarkupControl(); $description_control = id(new PhabricatorRemarkupControl())
// "Upsell" creating tasks via email in create flows if the instance is
// configured for this awesomeness.
$email_create = PhabricatorEnv::getEnvConfig(
'metamta.maniphest.public-create-email');
if (!$task->getID() && $email_create) {
$email_hint = pht(
'You can also create tasks by sending an email to: %s',
phutil_tag('tt', array(), $email_create));
$description_control->setCaption($email_hint);
}
$description_control
->setLabel(pht('Description')) ->setLabel(pht('Description'))
->setName('description') ->setName('description')
->setID('description-textarea') ->setID('description-textarea')
@ -706,7 +694,6 @@ final class ManiphestTaskEditController extends ManiphestController {
$form $form
->appendChild($description_control); ->appendChild($description_control);
if ($request->isAjax()) { if ($request->isAjax()) {
$dialog = id(new AphrontDialogView()) $dialog = id(new AphrontDialogView())
->setUser($user) ->setUser($user)

View file

@ -21,20 +21,6 @@ final class PhabricatorPasteConfigOptions
public function getOptions() { public function getOptions() {
return array( return array(
$this->newOption(
'metamta.paste.public-create-email',
'string',
null)
->setLocked(true)
->setLockedMessage(pht(
'This configuration is deprecated. See description for details.'))
->setSummary(pht('DEPRECATED - Allow creating pastes via email.'))
->setDescription(
pht(
'This config has been deprecated in favor of [[ '.
'/applications/view/PhabricatorPasteApplication/ | '.
'application settings ]], which allow for multiple email '.
'addresses and other functionality.')),
$this->newOption( $this->newOption(
'metamta.paste.subject-prefix', 'metamta.paste.subject-prefix',
'string', 'string',