mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Remove "re prefix" and "vary subjects" config
Summary: Ref T11098. There is no reason to maintain these as separate values now that they can be configured in global settings. Test Plan: - Hit and read setup issue. - Fiddled with settings. - I'll vet this more throughly in the next diff since I need to fix an issue with global defaults in mail and can explicitly test this at the same time. Reviewers: chad Reviewed By: chad Subscribers: eadler Maniphest Tasks: T11098 Differential Revision: https://secure.phabricator.com/D16117
This commit is contained in:
parent
bce44c8b02
commit
cb7560d301
4 changed files with 10 additions and 30 deletions
|
@ -190,6 +190,10 @@ final class PhabricatorExtraConfigSetupCheck extends PhabricatorSetupCheck {
|
|||
'The Differential revision list view age UI elements have been removed '.
|
||||
'to simplify the interface.');
|
||||
|
||||
$global_settings_reason = pht(
|
||||
'The "Re: Prefix" and "Vary Subjects" settings are now configured '.
|
||||
'in global settings.');
|
||||
|
||||
$ancient_config += array(
|
||||
'phid.external-loaders' =>
|
||||
pht(
|
||||
|
@ -321,6 +325,9 @@ final class PhabricatorExtraConfigSetupCheck extends PhabricatorSetupCheck {
|
|||
|
||||
'differential.days-fresh' => $stale_reason,
|
||||
'differential.days-stale' => $stale_reason,
|
||||
|
||||
'metamta.re-prefix' => $global_settings_reason,
|
||||
'metamta.vary-subjects' => $global_settings_reason,
|
||||
);
|
||||
|
||||
return $ancient_config;
|
||||
|
|
|
@ -276,22 +276,6 @@ EODOC
|
|||
))
|
||||
->setSummary(pht('Show email preferences link in email.'))
|
||||
->setDescription($email_preferences_description),
|
||||
$this->newOption('metamta.re-prefix', 'bool', false)
|
||||
->setBoolOptions(
|
||||
array(
|
||||
pht('Force "Re:" Subject Prefix'),
|
||||
pht('No "Re:" Subject Prefix'),
|
||||
))
|
||||
->setSummary(pht('Control "Re:" subject prefix, for Mail.app.'))
|
||||
->setDescription($re_prefix_description),
|
||||
$this->newOption('metamta.vary-subjects', 'bool', true)
|
||||
->setBoolOptions(
|
||||
array(
|
||||
pht('Allow Varied Subjects'),
|
||||
pht('Always Use the Same Thread Subject'),
|
||||
))
|
||||
->setSummary(pht('Control subject variance, for some mail clients.'))
|
||||
->setDescription($vary_subjects_description),
|
||||
$this->newOption('metamta.insecure-auth-with-reply-to', 'bool', false)
|
||||
->setBoolOptions(
|
||||
array(
|
||||
|
|
|
@ -1131,27 +1131,16 @@ final class PhabricatorMetaMTAMail
|
|||
}
|
||||
|
||||
private function shouldAddRePrefix(PhabricatorUserPreferences $preferences) {
|
||||
$default_value = PhabricatorEnv::getEnvConfig('metamta.re-prefix');
|
||||
|
||||
$value = $preferences->getPreference(
|
||||
$value = $preferences->getSettingValue(
|
||||
PhabricatorEmailRePrefixSetting::SETTINGKEY);
|
||||
if ($value === null) {
|
||||
return $default_value;
|
||||
}
|
||||
|
||||
return ($value == PhabricatorEmailRePrefixSetting::VALUE_RE_PREFIX);
|
||||
}
|
||||
|
||||
private function shouldVarySubject(PhabricatorUserPreferences $preferences) {
|
||||
$default_value = PhabricatorEnv::getEnvConfig('metamta.vary-subjects');
|
||||
|
||||
$value = $preferences->getPreference(
|
||||
$value = $preferences->getSettingValue(
|
||||
PhabricatorEmailVarySubjectsSetting::SETTINGKEY);
|
||||
|
||||
if ($value === null) {
|
||||
return $default_value;
|
||||
}
|
||||
|
||||
return ($value == PhabricatorEmailVarySubjectsSetting::VALUE_VARY_SUBJECTS);
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ final class PhabricatorEmailRePrefixSetting
|
|||
}
|
||||
|
||||
public function getSettingDefaultValue() {
|
||||
return self::VALUE_RE_PREFIX;
|
||||
return self::VALUE_NO_PREFIX;
|
||||
}
|
||||
|
||||
protected function getSelectOptions() {
|
||||
|
|
Loading…
Reference in a new issue