Differential D16023 Diff 38575 src/applications/settings/setting/PhabricatorEmailRePrefixSetting.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/setting/PhabricatorEmailRePrefixSetting.php
| <?php | <?php | ||||
| final class PhabricatorEmailRePrefixSetting | final class PhabricatorEmailRePrefixSetting | ||||
| extends PhabricatorSelectSetting { | extends PhabricatorSelectSetting { | ||||
| const SETTINGKEY = 're-prefix'; | const SETTINGKEY = 're-prefix'; | ||||
| const VALUE_RE_PREFIX = 'true'; | const VALUE_RE_PREFIX = 'true'; | ||||
| const VALUE_NO_PREFIX = 'false'; | const VALUE_NO_PREFIX = 'false'; | ||||
| public function getSettingName() { | public function getSettingName() { | ||||
| return pht('Add "Re:" Prefix'); | return pht('Add "Re:" Prefix'); | ||||
| } | } | ||||
| public function getSettingPanelKey() { | |||||
| return PhabricatorEmailFormatSettingsPanel::PANELKEY; | |||||
| } | |||||
| protected function getSettingOrder() { | |||||
| return 200; | |||||
| } | |||||
| protected function isEnabledForViewer(PhabricatorUser $viewer) { | |||||
| return PhabricatorMetaMTAMail::shouldMultiplexAllMail(); | |||||
| } | |||||
| protected function getControlInstructions() { | protected function getControlInstructions() { | ||||
| return pht( | return pht( | ||||
| 'The **Add "Re:" Prefix** setting adds "Re:" in front of all messages, '. | 'The **Add "Re:" Prefix** setting adds "Re:" in front of all messages, '. | ||||
| 'even if they are not replies. If you use **Mail.app** on Mac OS X, '. | 'even if they are not replies. If you use **Mail.app** on Mac OS X, '. | ||||
| 'this may improve mail threading.'. | 'this may improve mail threading.'. | ||||
| "\n\n". | "\n\n". | ||||
| "| Setting | Example Mail Subject\n". | "| Setting | Example Mail Subject\n". | ||||
| "|------------------------|----------------\n". | "|------------------------|----------------\n". | ||||
| Show All 18 Lines | |||||