3 final class PhabricatorEmailRePrefixSetting
4 extends PhabricatorSelectSetting
{
6 const SETTINGKEY
= 're-prefix';
8 const VALUE_RE_PREFIX
= 're';
9 const VALUE_NO_PREFIX
= 'none';
11 public function getSettingName() {
12 return pht('Add "Re:" Prefix');
15 public function getSettingPanelKey() {
16 return PhabricatorEmailFormatSettingsPanel
::PANELKEY
;
19 protected function getSettingOrder() {
23 protected function getControlInstructions() {
25 'The **Add "Re:" Prefix** setting adds "Re:" in front of all messages, '.
26 'even if they are not replies. If you use **Mail.app** on Mac OS X, '.
27 'this may improve mail threading.'.
29 "| Setting | Example Mail Subject\n".
30 "|------------------------|----------------\n".
31 "| Enable \"Re:\" Prefix | ".
32 "`Re: [Differential] [Accepted] D123: Example Revision`\n".
33 "| Disable \"Re:\" Prefix | ".
34 "`[Differential] [Accepted] D123: Example Revision`");
37 public function getSettingDefaultValue() {
38 return self
::VALUE_NO_PREFIX
;
41 protected function getSelectOptions() {
43 self
::VALUE_RE_PREFIX
=> pht('Enable "Re:" Prefix'),
44 self
::VALUE_NO_PREFIX
=> pht('Disable "Re:" Prefix'),