Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894169
PhabricatorEmailStampsSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorEmailStampsSetting.php
View Options
<?php
final
class
PhabricatorEmailStampsSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'stamps'
;
const
VALUE_BODY_STAMPS
=
'body'
;
const
VALUE_HEADER_STAMPS
=
'header'
;
public
function
getSettingName
(
)
{
return
pht
(
'Send Stamps'
)
;
}
public
function
getSettingPanelKey
(
)
{
return
PhabricatorEmailFormatSettingsPanel
::
PANELKEY
;
}
protected
function
getSettingOrder
(
)
{
return
400
;
}
protected
function
getControlInstructions
(
)
{
return
pht
(
<<<EOREMARKUP
Outgoing mail is stamped with labels like `actor(alice)` which can be used to
write client mail rules to organize mail. By default, these stamps are sent
in an `X-Phabricator-Stamps` header.
If you use a client which can not use headers to route mail (like Gmail),
you can also include the stamps in the message body so mail rules based on
body content can route messages.
EOREMARKUP
)
;
}
public
function
getSettingDefaultValue
(
)
{
return
self
::
VALUE_HEADER_STAMPS
;
}
protected
function
getSelectOptions
(
)
{
return
array
(
self
::
VALUE_HEADER_STAMPS
=>
pht
(
'Mail Headers'
)
,
self
::
VALUE_BODY_STAMPS
=>
pht
(
'Mail Headers and Body'
)
,
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 19:30 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111196
Default Alt Text
PhabricatorEmailStampsSetting.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment