Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93615307
PhabricatorEmailRePrefixSetting.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
Sat, Nov 30, 04:33
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Dec 2, 04:33 (2 d)
Engine
blob
Format
Raw Data
Handle
22674541
Attached To
rPH Phabricator
PhabricatorEmailRePrefixSetting.php
View Options
<?php
final
class
PhabricatorEmailRePrefixSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
're-prefix'
;
const
VALUE_RE_PREFIX
=
're'
;
const
VALUE_NO_PREFIX
=
'none'
;
public
function
getSettingName
()
{
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
()
{
return
pht
(
'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, '
.
'this may improve mail threading.'
.
"
\n\n
"
.
"| Setting | Example Mail Subject
\n
"
.
"|------------------------|----------------
\n
"
.
"| Enable
\"
Re:
\"
Prefix | "
.
"`Re: [Differential] [Accepted] D123: Example Revision`
\n
"
.
"| Disable
\"
Re:
\"
Prefix | "
.
"`[Differential] [Accepted] D123: Example Revision`"
);
}
public
function
getSettingDefaultValue
()
{
return
self
::
VALUE_NO_PREFIX
;
}
protected
function
getSelectOptions
()
{
return
array
(
self
::
VALUE_RE_PREFIX
=>
pht
(
'Enable "Re:" Prefix'
),
self
::
VALUE_NO_PREFIX
=>
pht
(
'Disable "Re:" Prefix'
),
);
}
}
Event Timeline
Log In to Comment