Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94962214
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
Wed, Dec 11, 18:10
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Dec 13, 18:10 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22906537
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