@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+10 -93
+9
src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
··· 171 171 'Phabricator no longer supports global customization of monospaced '. 172 172 'fonts.'); 173 173 174 + $public_mail_reason = pht( 175 + 'Inbound mail addresses are now configured for each application '. 176 + 'in the Applications tool.'); 177 + 174 178 $ancient_config += array( 175 179 'phid.external-loaders' => 176 180 pht( ··· 256 260 'search.engine-selector' => pht( 257 261 'Phabricator now automatically discovers available search engines '. 258 262 'at runtime.'), 263 + 264 + 'metamta.files.public-create-email' => $public_mail_reason, 265 + 'metamta.maniphest.public-create-email' => $public_mail_reason, 266 + 'metamta.maniphest.default-public-author' => $public_mail_reason, 267 + 'metamta.paste.public-create-email' => $public_mail_reason, 259 268 ); 260 269 261 270 return $ancient_config;
-14
src/applications/files/config/PhabricatorFilesConfigOptions.php
··· 157 157 "must also configure S3 access keys in the 'Amazon Web Services' ". 158 158 "group.")), 159 159 $this->newOption( 160 - 'metamta.files.public-create-email', 161 - 'string', 162 - null) 163 - ->setLocked(true) 164 - ->setLockedMessage(pht( 165 - 'This configuration is deprecated. See description for details.')) 166 - ->setSummary(pht('DEPRECATED - Allow uploaded files via email.')) 167 - ->setDescription( 168 - pht( 169 - 'This config has been deprecated in favor of [[ '. 170 - '/applications/view/PhabricatorFilesApplication/ | '. 171 - 'application settings ]], which allow for multiple email '. 172 - 'addresses and other functionality.')), 173 - $this->newOption( 174 160 'metamta.files.subject-prefix', 175 161 'string', 176 162 '[File]')
-51
src/applications/maniphest/config/PhabricatorManiphestConfigOptions.php
··· 297 297 '[Maniphest]') 298 298 ->setDescription(pht('Subject prefix for Maniphest mail.')), 299 299 $this->newOption( 300 - 'metamta.maniphest.public-create-email', 301 - 'string', 302 - null) 303 - ->setLocked(true) 304 - ->setLockedMessage(pht( 305 - 'This configuration is deprecated. See description for details.')) 306 - ->setSummary(pht('DEPRECATED - Allow filing bugs via email.')) 307 - ->setDescription( 308 - pht( 309 - 'This config has been deprecated in favor of [[ '. 310 - '/applications/view/PhabricatorManiphestApplication/ | '. 311 - 'application settings ]], which allow for multiple email '. 312 - 'addresses and other functionality.'."\n\n". 313 - 'You can configure an email address like '. 314 - '"bugs@phabricator.example.com" which will automatically create '. 315 - 'Maniphest tasks when users send email to it. This relies on the '. 316 - '"From" address to authenticate users, so it is is not completely '. 317 - 'secure. To set this up, enter a complete email address like '. 318 - '"bugs@phabricator.example.com" and then configure mail to that '. 319 - 'address so it routed to Phabricator (if you\'ve already '. 320 - 'configured reply handlers, you\'re probably already done). See '. 321 - '"Configuring Inbound Email" in the documentation for more '. 322 - 'information.')), 323 - $this->newOption( 324 - 'metamta.maniphest.default-public-author', 325 - 'string', 326 - null) 327 - ->setLocked(true) 328 - ->setLockedMessage(pht( 329 - 'This configuration is deprecated. See description for details.')) 330 - ->setSummary(pht( 331 - 'DEPRECATED - Username anonymous bugs are filed under.')) 332 - ->setDescription( 333 - pht( 334 - 'This config has been deprecated in favor of [[ '. 335 - '/applications/view/PhabricatorManiphestApplication/ | '. 336 - 'application settings ]], which allow for multiple email '. 337 - 'addresses each with its own default author, and other '. 338 - 'functionality.'."\n\n". 339 - 'If you enable `metamta.maniphest.public-create-email` and create '. 340 - 'an email address like "bugs@phabricator.example.com", it will '. 341 - 'default to rejecting mail which doesn\'t come from a known user. '. 342 - 'However, you might want to let anyone send email to this '. 343 - 'address; to do so, set a default author here (a Phabricator '. 344 - 'username). A typical use of this might be to create a "System '. 345 - 'Agent" user called "bugs" and use that name here. If you specify '. 346 - 'a valid username, mail will always be accepted and used to '. 347 - 'create a task, even if the sender is not a system user. The '. 348 - 'original email address will be stored in an `From Email` field '. 349 - 'on the task.')), 350 - $this->newOption( 351 300 'maniphest.priorities.unbreak-now', 352 301 'int', 353 302 100)
+1 -14
src/applications/maniphest/controller/ManiphestTaskEditController.php
··· 684 684 'tokenizerID' => $project_tokenizer_id, 685 685 )); 686 686 687 - $description_control = new PhabricatorRemarkupControl(); 688 - // "Upsell" creating tasks via email in create flows if the instance is 689 - // configured for this awesomeness. 690 - $email_create = PhabricatorEnv::getEnvConfig( 691 - 'metamta.maniphest.public-create-email'); 692 - if (!$task->getID() && $email_create) { 693 - $email_hint = pht( 694 - 'You can also create tasks by sending an email to: %s', 695 - phutil_tag('tt', array(), $email_create)); 696 - $description_control->setCaption($email_hint); 697 - } 698 - 699 - $description_control 687 + $description_control = id(new PhabricatorRemarkupControl()) 700 688 ->setLabel(pht('Description')) 701 689 ->setName('description') 702 690 ->setID('description-textarea') ··· 705 693 706 694 $form 707 695 ->appendChild($description_control); 708 - 709 696 710 697 if ($request->isAjax()) { 711 698 $dialog = id(new AphrontDialogView())
-14
src/applications/paste/config/PhabricatorPasteConfigOptions.php
··· 22 22 public function getOptions() { 23 23 return array( 24 24 $this->newOption( 25 - 'metamta.paste.public-create-email', 26 - 'string', 27 - null) 28 - ->setLocked(true) 29 - ->setLockedMessage(pht( 30 - 'This configuration is deprecated. See description for details.')) 31 - ->setSummary(pht('DEPRECATED - Allow creating pastes via email.')) 32 - ->setDescription( 33 - pht( 34 - 'This config has been deprecated in favor of [[ '. 35 - '/applications/view/PhabricatorPasteApplication/ | '. 36 - 'application settings ]], which allow for multiple email '. 37 - 'addresses and other functionality.')), 38 - $this->newOption( 39 25 'metamta.paste.subject-prefix', 40 26 'string', 41 27 '[Paste]')