3 final class MetaMTAReceivedMailStatus
6 const STATUS_DUPLICATE
= 'err:duplicate';
7 const STATUS_FROM_PHABRICATOR
= 'err:self';
8 const STATUS_NO_RECEIVERS
= 'err:no-receivers';
9 const STATUS_UNKNOWN_SENDER
= 'err:unknown-sender';
10 const STATUS_DISABLED_SENDER
= 'err:disabled-sender';
11 const STATUS_NO_PUBLIC_MAIL
= 'err:no-public-mail';
12 const STATUS_USER_MISMATCH
= 'err:bad-user';
13 const STATUS_POLICY_PROBLEM
= 'err:policy';
14 const STATUS_NO_SUCH_OBJECT
= 'err:not-found';
15 const STATUS_HASH_MISMATCH
= 'err:bad-hash';
16 const STATUS_UNHANDLED_EXCEPTION
= 'err:exception';
17 const STATUS_EMPTY
= 'err:empty';
18 const STATUS_EMPTY_IGNORED
= 'err:empty-ignored';
19 const STATUS_RESERVED
= 'err:reserved-recipient';
21 public static function getHumanReadableName($status) {
23 self
::STATUS_DUPLICATE
=> pht('Duplicate Message'),
24 self
::STATUS_FROM_PHABRICATOR
=> pht('Mail From Self'),
25 self
::STATUS_NO_RECEIVERS
=> pht('No Receivers'),
26 self
::STATUS_UNKNOWN_SENDER
=> pht('Unknown Sender'),
27 self
::STATUS_DISABLED_SENDER
=> pht('Disabled Sender'),
28 self
::STATUS_NO_PUBLIC_MAIL
=> pht('No Public Mail'),
29 self
::STATUS_USER_MISMATCH
=> pht('User Mismatch'),
30 self
::STATUS_POLICY_PROBLEM
=> pht('Policy Error'),
31 self
::STATUS_NO_SUCH_OBJECT
=> pht('No Such Object'),
32 self
::STATUS_HASH_MISMATCH
=> pht('Bad Address'),
33 self
::STATUS_UNHANDLED_EXCEPTION
=> pht('Unhandled Exception'),
34 self
::STATUS_EMPTY
=> pht('Empty Mail'),
35 self
::STATUS_EMPTY_IGNORED
=> pht('Ignored Empty Mail'),
36 self
::STATUS_RESERVED
=> pht('Reserved Recipient'),
39 return idx($map, $status, pht('Processing Exception'));