Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F452573
PhabricatorEmailRePrefixSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorEmailRePrefixSetting.php
View Options
<?php
final
class
PhabricatorEmailRePrefixSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
're-prefix'
;
const
VALUE_RE_PREFIX
=
'true'
;
const
VALUE_NO_PREFIX
=
'false'
;
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_RE_PREFIX
;
}
protected
function
getSelectOptions
()
{
return
array
(
self
::
VALUE_RE_PREFIX
=>
pht
(
'Enable "Re:" Prefix'
),
self
::
VALUE_NO_PREFIX
=>
pht
(
'Disable "Re:" Prefix'
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 12:48 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
68923
Default Alt Text
PhabricatorEmailRePrefixSetting.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment