mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
eabe3a4d33
Summary: We/I broke a couple of things here recently (see D5911) and are doing some work here in general (see D5912, etc.). Generally, this code is pretty oldschool and not especially well architected for modern application-oriented Phabricator. It hardcodes a lot of stuff which should be applications' responsibilites. Take the first steps toward making it more solid to reduce the risk here. In particular: - Factor out the "self mail" and "duplicate mail" checks and add unit tests. - Make Message-ID hash handling automatic. Test Plan: Ran unit tests. Reviewers: btrahan, chad Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D5915
20 lines
414 B
PHP
20 lines
414 B
PHP
<?php
|
|
|
|
final class PhabricatorMetaMTAReceivedMailProcessingException
|
|
extends Exception {
|
|
|
|
private $statusCode;
|
|
|
|
public function getStatusCode() {
|
|
return $this->statusCode;
|
|
}
|
|
|
|
public function __construct($status_code /* ... */) {
|
|
$args = func_get_args();
|
|
$this->statusCode = $args[0];
|
|
|
|
$args = array_slice($args, 1);
|
|
call_user_func_array(array('parent', '__construct'), $args);
|
|
}
|
|
|
|
}
|