Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94055103
PhabricatorEmailVarySubjectsSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Dec 3, 13:29
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Dec 5, 13:29 (2 d)
Engine
blob
Format
Raw Data
Handle
22726286
Attached To
rPH Phabricator
PhabricatorEmailVarySubjectsSetting.php
View Options
<?php
final
class
PhabricatorEmailVarySubjectsSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'vary-subject'
;
const
VALUE_VARY_SUBJECTS
=
'vary'
;
const
VALUE_STATIC_SUBJECTS
=
'static'
;
public
function
getSettingName
()
{
return
pht
(
'Vary Subjects'
);
}
public
function
getSettingPanelKey
()
{
return
PhabricatorEmailFormatSettingsPanel
::
PANELKEY
;
}
protected
function
getSettingOrder
()
{
return
300
;
}
protected
function
getControlInstructions
()
{
return
pht
(
'With **Vary Subjects** enabled, most mail subject lines will include '
.
'a brief description of their content, like `[Closed]` for a '
.
'notification about someone closing a task.'
.
"
\n\n
"
.
"| Setting | Example Mail Subject
\n
"
.
"|----------------------|----------------
\n
"
.
"| Vary Subjects | "
.
"`[Maniphest] [Closed] T123: Example Task`
\n
"
.
"| Do Not Vary Subjects | "
.
"`[Maniphest] T123: Example Task`
\n
"
.
"
\n
"
.
'This can make mail more useful, but some clients have difficulty '
.
'threading these messages. Disabling this option may improve '
.
'threading at the cost of making subject lines less useful.'
);
}
public
function
getSettingDefaultValue
()
{
return
self
::
VALUE_VARY_SUBJECTS
;
}
protected
function
getSelectOptions
()
{
return
array
(
self
::
VALUE_VARY_SUBJECTS
=>
pht
(
'Enable Vary Subjects'
),
self
::
VALUE_STATIC_SUBJECTS
=>
pht
(
'Disable Vary Subjects'
),
);
}
}
Event Timeline
Log In to Comment