3 final class PhabricatorEmailStampsSetting
4 extends PhabricatorSelectSetting
{
6 const SETTINGKEY
= 'stamps';
8 const VALUE_BODY_STAMPS
= 'body';
9 const VALUE_HEADER_STAMPS
= 'header';
11 public function getSettingName() {
12 return pht('Send Stamps');
15 public function getSettingPanelKey() {
16 return PhabricatorEmailFormatSettingsPanel
::PANELKEY
;
19 protected function getSettingOrder() {
23 protected function getControlInstructions() {
24 return pht(<<<EOREMARKUP
25 Outgoing mail is stamped with labels like `actor(alice)` which can be used to
26 write client mail rules to organize mail. By default, these stamps are sent
27 in an `X-Phabricator-Stamps` header.
29 If you use a client which can not use headers to route mail (like Gmail),
30 you can also include the stamps in the message body so mail rules based on
31 body content can route messages.
36 public function getSettingDefaultValue() {
37 return self
::VALUE_HEADER_STAMPS
;
40 protected function getSelectOptions() {
42 self
::VALUE_HEADER_STAMPS
=> pht('Mail Headers'),
43 self
::VALUE_BODY_STAMPS
=> pht('Mail Headers and Body'),