repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/slowvote/remarkup/SlowvoteRemarkupRule.php
src/applications/slowvote/remarkup/SlowvoteRemarkupRule.php
<?php final class SlowvoteRemarkupRule extends PhabricatorObjectRemarkupRule { protected function getObjectNamePrefix() { return 'V'; } protected function loadObjects(array $ids) { $viewer = $this->getEngine()->getConfig('viewer'); return id(new PhabricatorSlowvoteQuery()) ->setViewer($viewe...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/slowvote/constants/SlowvotePollVotingMethod.php
src/applications/slowvote/constants/SlowvotePollVotingMethod.php
<?php final class SlowvotePollVotingMethod extends Phobject { const METHOD_PLURALITY = 'plurality'; const METHOD_APPROVAL = 'approval'; private $key; public static function newVotingMethodObject($key) { $object = new self(); $object->key = $key; return $object; } public function getKey() ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/slowvote/constants/SlowvotePollStatus.php
src/applications/slowvote/constants/SlowvotePollStatus.php
<?php final class SlowvotePollStatus extends Phobject { const STATUS_OPEN = 'open'; const STATUS_CLOSED = 'closed'; private $key; public static function newStatusObject($key) { $object = new self(); $object->key = $key; return $object; } public function getKey() { return $this->key; ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/slowvote/constants/SlowvotePollResponseVisibility.php
src/applications/slowvote/constants/SlowvotePollResponseVisibility.php
<?php final class SlowvotePollResponseVisibility extends Phobject { const RESPONSES_VISIBLE = 'visible'; const RESPONSES_VOTERS = 'voters'; const RESPONSES_OWNER = 'owner'; private $key; public static function newResponseVisibilityObject($key) { $object = new self(); $object->key = $key; ret...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/CelerityResourceMap.php
src/applications/celerity/CelerityResourceMap.php
<?php /** * Interface to the static resource map, which is a graph of available * resources, resource dependencies, and packaging information. You generally do * not need to invoke it directly; instead, you call higher-level Celerity APIs * and it uses the resource map to satisfy your requests. */ final class Cel...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/CelerityResourceTransformer.php
src/applications/celerity/CelerityResourceTransformer.php
<?php final class CelerityResourceTransformer extends Phobject { private $minify; private $rawURIMap; private $celerityMap; private $translateURICallback; private $currentPath; private $postprocessorKey; private $variableMap; public function setPostprocessorKey($postprocessor_key) { $this->postpr...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/CelerityStaticResourceResponse.php
src/applications/celerity/CelerityStaticResourceResponse.php
<?php /** * Tracks and resolves dependencies the page declares with * @{function:require_celerity_resource}, and then builds appropriate HTML or * Ajax responses. */ final class CelerityStaticResourceResponse extends Phobject { private $symbols = array(); private $needsResolve = true; private $resolved; p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/CelerityResourceGraph.php
src/applications/celerity/CelerityResourceGraph.php
<?php final class CelerityResourceGraph extends AbstractDirectedGraph { private $resourceGraph = array(); private $graphSet = false; protected function loadEdges(array $nodes) { if (!$this->graphSet) { throw new PhutilInvalidStateException('setResourceGraph'); } $graph = $this->getResourceGr...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/api.php
src/applications/celerity/api.php
<?php /** * Include a CSS or JS static resource by name. This function records a * dependency for the current page, so when a response is generated it can be * included. You can call this method from any context, and it is recommended * you invoke it as close to the actual dependency as possible so that page * de...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/CelerityAPI.php
src/applications/celerity/CelerityAPI.php
<?php /** * Indirection layer which provisions for a terrifying future where we need to * build multiple resource responses per page. */ final class CelerityAPI extends Phobject { private static $response; public static function getStaticResourceResponse() { if (empty(self::$response)) { self::$resp...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/CeleritySpriteGenerator.php
src/applications/celerity/CeleritySpriteGenerator.php
<?php final class CeleritySpriteGenerator extends Phobject { public function buildTokenSheet() { $icons = $this->getDirectoryList('tokens_1x'); $scales = array( '1x' => 1, '2x' => 2, ); $template = id(new PhutilSprite()) ->setSourceSize(18, 18); $sprites = array(); $prefix...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/CelerityResourceMapGenerator.php
src/applications/celerity/CelerityResourceMapGenerator.php
<?php final class CelerityResourceMapGenerator extends Phobject { private $debug = false; private $resources; private $nameMap = array(); private $symbolMap = array(); private $requiresMap = array(); private $packageMap = array(); public function __construct(CelerityPhysicalResources $resources...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/controller/CelerityPhabricatorResourceController.php
src/applications/celerity/controller/CelerityPhabricatorResourceController.php
<?php /** * Delivers CSS and JS resources to the browser. This controller handles all * `/res/` requests, and manages caching, package construction, and resource * preprocessing. */ final class CelerityPhabricatorResourceController extends CelerityResourceController { private $path; private $hash; private...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/controller/CelerityResourceController.php
src/applications/celerity/controller/CelerityResourceController.php
<?php abstract class CelerityResourceController extends PhabricatorController { protected function buildResourceTransformer() { return null; } public function shouldRequireLogin() { return false; } public function shouldRequireEnabledUser() { return false; } public function shouldAllowPar...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/management/CelerityManagementMapWorkflow.php
src/applications/celerity/management/CelerityManagementMapWorkflow.php
<?php final class CelerityManagementMapWorkflow extends CelerityManagementWorkflow { protected function didConstruct() { $this ->setName('map') ->setExamples('**map** [options]') ->setSynopsis(pht('Rebuild static resource maps.')) ->setArguments( array()); } public functio...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/management/CelerityManagementSyntaxWorkflow.php
src/applications/celerity/management/CelerityManagementSyntaxWorkflow.php
<?php final class CelerityManagementSyntaxWorkflow extends CelerityManagementWorkflow { protected function didConstruct() { $this ->setName('syntax') ->setExamples('**syntax** [options]') ->setSynopsis(pht('Rebuild syntax highlighting CSS.')) ->setArguments( array()); } pu...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/management/CelerityManagementWorkflow.php
src/applications/celerity/management/CelerityManagementWorkflow.php
<?php abstract class CelerityManagementWorkflow extends PhabricatorManagementWorkflow {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/application/PhabricatorCelerityApplication.php
src/applications/celerity/application/PhabricatorCelerityApplication.php
<?php final class PhabricatorCelerityApplication extends PhabricatorApplication { public function getName() { return pht('Celerity'); } public function canUninstall() { return false; } public function isUnlisted() { return true; } public function getRoutes() { // We serve resources fr...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/__tests__/CelerityPostprocessorTestCase.php
src/applications/celerity/__tests__/CelerityPostprocessorTestCase.php
<?php final class CelerityPostprocessorTestCase extends PhabricatorTestCase { public function testGetAllCelerityPostprocessors() { CelerityPostprocessor::getAllPostprocessors(); $this->assertTrue(true); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/__tests__/CelerityResourceTransformerTestCase.php
src/applications/celerity/__tests__/CelerityResourceTransformerTestCase.php
<?php final class CelerityResourceTransformerTestCase extends PhabricatorTestCase { public function testTransformation() { $files = dirname(__FILE__).'/transformer/'; foreach (Filesystem::listDirectory($files) as $file) { $name = basename($file); $data = Filesystem::readFile($files.'/'.$file); ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/postprocessor/CelerityDefaultPostprocessor.php
src/applications/celerity/postprocessor/CelerityDefaultPostprocessor.php
<?php final class CelerityDefaultPostprocessor extends CelerityPostprocessor { const POSTPROCESSOR_KEY = 'default'; public function getPostprocessorKey() { return self::POSTPROCESSOR_KEY; } public function getPostprocessorName() { return pht('Use Standard Colors'); } public function buildDefa...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/postprocessor/CelerityLargeFontPostprocessor.php
src/applications/celerity/postprocessor/CelerityLargeFontPostprocessor.php
<?php final class CelerityLargeFontPostprocessor extends CelerityPostprocessor { public function getPostprocessorKey() { return 'fontsizeplusone'; } public function getPostprocessorName() { return pht('Use Larger Font Size'); } public function buildVariables() { return array( 'basefon...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/postprocessor/CelerityRedGreenPostprocessor.php
src/applications/celerity/postprocessor/CelerityRedGreenPostprocessor.php
<?php final class CelerityRedGreenPostprocessor extends CelerityPostprocessor { public function getPostprocessorKey() { return 'redgreen'; } public function getPostprocessorName() { return pht('Use Red/Green (Deuteranopia) Colors'); } public function buildVariables() { return array( 'n...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/postprocessor/CelerityDarkModePostprocessor.php
src/applications/celerity/postprocessor/CelerityDarkModePostprocessor.php
<?php final class CelerityDarkModePostprocessor extends CelerityPostprocessor { public function getPostprocessorKey() { return 'darkmode'; } public function getPostprocessorName() { return pht('Dark Mode (Experimental)'); } public function buildVariables() { return array( // Fonts ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/postprocessor/CelerityPostprocessor.php
src/applications/celerity/postprocessor/CelerityPostprocessor.php
<?php abstract class CelerityPostprocessor extends Phobject { private $default; abstract public function getPostprocessorKey(); abstract public function getPostprocessorName(); abstract public function buildVariables(); public function buildDefaultPostprocessor() { return new CelerityDefaultPostproc...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/postprocessor/CelerityHighContrastPostprocessor.php
src/applications/celerity/postprocessor/CelerityHighContrastPostprocessor.php
<?php final class CelerityHighContrastPostprocessor extends CelerityPostprocessor { public function getPostprocessorKey() { return 'contrast'; } public function getPostprocessorName() { return pht('Use High Contrast Colors'); } public function buildVariables() { return array( 'blue' =>...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/resources/CelerityResources.php
src/applications/celerity/resources/CelerityResources.php
<?php /** * Defines the location of static resources. */ abstract class CelerityResources extends Phobject { abstract public function getName(); abstract public function getResourceData($name); public function getResourceModifiedTime($name) { return 0; } public function getResourceType($path) { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/resources/CelerityPhabricatorResources.php
src/applications/celerity/resources/CelerityPhabricatorResources.php
<?php /** * Defines Phabricator's static resources. */ final class CelerityPhabricatorResources extends CelerityResourcesOnDisk { public function getName() { return 'phabricator'; } public function getPathToResources() { return $this->getPhabricatorPath('webroot/'); } public function getPathToMa...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/resources/CelerityPhysicalResources.php
src/applications/celerity/resources/CelerityPhysicalResources.php
<?php /** * Defines the location of physical static resources which exist at build time * and are precomputed into a resource map. */ abstract class CelerityPhysicalResources extends CelerityResources { private $map; abstract public function getPathToMap(); abstract public function findBinaryResources(); ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/resources/CelerityResourcesOnDisk.php
src/applications/celerity/resources/CelerityResourcesOnDisk.php
<?php /** * Defines the location of static resources on disk. */ abstract class CelerityResourcesOnDisk extends CelerityPhysicalResources { abstract public function getPathToResources(); private function getPathToResource($name) { return $this->getPathToResources().DIRECTORY_SEPARATOR.$name; } public ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/celerity/resources/__tests__/CelerityPhysicalResourcesTestCase.php
src/applications/celerity/resources/__tests__/CelerityPhysicalResourcesTestCase.php
<?php final class CelerityPhysicalResourcesTestCase extends PhabricatorTestCase { public function testGetAll() { CelerityPhysicalResources::getAll(); $this->assertTrue(true); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/PhabricatorMetaMTAWorker.php
src/applications/metamta/PhabricatorMetaMTAWorker.php
<?php final class PhabricatorMetaMTAWorker extends PhabricatorWorker { public function getMaximumRetryCount() { return 250; } public function getWaitBeforeRetry(PhabricatorWorkerTask $task) { return ($task->getFailureCount() * 15); } protected function doWork() { $message = $this->loadMessag...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/controller/PhabricatorMetaMTAMailListController.php
src/applications/metamta/controller/PhabricatorMetaMTAMailListController.php
<?php final class PhabricatorMetaMTAMailListController extends PhabricatorMetaMTAController { public function handleRequest(AphrontRequest $request) { $controller = id(new PhabricatorApplicationSearchController()) ->setQueryKey($request->getURIData('queryKey')) ->setSearchEngine(new PhabricatorMet...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/controller/PhabricatorMetaMTAController.php
src/applications/metamta/controller/PhabricatorMetaMTAController.php
<?php abstract class PhabricatorMetaMTAController extends PhabricatorController {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/controller/PhabricatorMetaMTAMailgunReceiveController.php
src/applications/metamta/controller/PhabricatorMetaMTAMailgunReceiveController.php
<?php final class PhabricatorMetaMTAMailgunReceiveController extends PhabricatorMetaMTAController { public function shouldRequireLogin() { return false; } private function verifyMessage() { $request = $this->getRequest(); $timestamp = $request->getStr('timestamp'); $token = $request->getStr('...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/controller/PhabricatorMetaMTAPostmarkReceiveController.php
src/applications/metamta/controller/PhabricatorMetaMTAPostmarkReceiveController.php
<?php final class PhabricatorMetaMTAPostmarkReceiveController extends PhabricatorMetaMTAController { public function shouldRequireLogin() { return false; } /** * @phutil-external-symbol class PhabricatorStartup */ public function handleRequest(AphrontRequest $request) { // Don't process reque...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/controller/PhabricatorMetaMTASendGridReceiveController.php
src/applications/metamta/controller/PhabricatorMetaMTASendGridReceiveController.php
<?php final class PhabricatorMetaMTASendGridReceiveController extends PhabricatorMetaMTAController { public function shouldRequireLogin() { return false; } public function handleRequest(AphrontRequest $request) { // SendGrid doesn't sign payloads so we can't be sure that SendGrid // actually sent...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
<?php final class PhabricatorMetaMTAMailViewController extends PhabricatorMetaMTAController { public function handleRequest(AphrontRequest $request) { $viewer = $this->getViewer(); $mail = id(new PhabricatorMetaMTAMailQuery()) ->setViewer($viewer) ->withIDs(array($request->getURIData('id'))) ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/engineextension/PhabricatorMailPropertiesDestructionEngineExtension.php
src/applications/metamta/engineextension/PhabricatorMailPropertiesDestructionEngineExtension.php
<?php final class PhabricatorMailPropertiesDestructionEngineExtension extends PhabricatorDestructionEngineExtension { const EXTENSIONKEY = 'mail.properties'; public function getExtensionName() { return pht('Mail Properties'); } public function destroyObject( PhabricatorDestructionEngine $engine, ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/storage/PhabricatorMetaMTADAO.php
src/applications/metamta/storage/PhabricatorMetaMTADAO.php
<?php abstract class PhabricatorMetaMTADAO extends PhabricatorLiskDAO { public function getApplicationName() { return 'metamta'; } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/storage/PhabricatorMetaMTAApplicationEmailTransaction.php
src/applications/metamta/storage/PhabricatorMetaMTAApplicationEmailTransaction.php
<?php final class PhabricatorMetaMTAApplicationEmailTransaction extends PhabricatorApplicationTransaction { const KEY_CONFIG = 'appemail.config.key'; const TYPE_ADDRESS = 'appemail.address'; const TYPE_CONFIG = 'appemail.config'; public function getApplicationName() { return 'metamta'; } public f...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/storage/PhabricatorMetaMTAApplicationEmail.php
src/applications/metamta/storage/PhabricatorMetaMTAApplicationEmail.php
<?php final class PhabricatorMetaMTAApplicationEmail extends PhabricatorMetaMTADAO implements PhabricatorPolicyInterface, PhabricatorApplicationTransactionInterface, PhabricatorDestructibleInterface, PhabricatorSpacesInterface { protected $applicationPHID; protected $address; protected $conf...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php
src/applications/metamta/storage/PhabricatorMetaMTAReceivedMail.php
<?php final class PhabricatorMetaMTAReceivedMail extends PhabricatorMetaMTADAO { protected $headers = array(); protected $bodies = array(); protected $attachments = array(); protected $status = ''; protected $relatedPHID; protected $authorPHID; protected $message; protected $messageIDHash = ''; pr...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/storage/PhabricatorMetaMTAMail.php
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
<?php /** * @task recipients Managing Recipients */ final class PhabricatorMetaMTAMail extends PhabricatorMetaMTADAO implements PhabricatorPolicyInterface, PhabricatorDestructibleInterface { const RETRY_DELAY = 5; protected $actorPHID; protected $parameters = array(); protected $status; p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
true
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/storage/PhabricatorMetaMTAMailProperties.php
src/applications/metamta/storage/PhabricatorMetaMTAMailProperties.php
<?php final class PhabricatorMetaMTAMailProperties extends PhabricatorMetaMTADAO implements PhabricatorPolicyInterface { protected $objectPHID; protected $mailProperties = array(); protected function getConfiguration() { return array( self::CONFIG_SERIALIZATION => array( 'mailProperties' ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/storage/PhabricatorMetaMTASchemaSpec.php
src/applications/metamta/storage/PhabricatorMetaMTASchemaSpec.php
<?php final class PhabricatorMetaMTASchemaSpec extends PhabricatorConfigSchemaSpec { public function buildSchemata() { $this->buildEdgeSchemata( new PhabricatorMetaMTAMail()); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/storage/__tests__/PhabricatorMailConfigTestCase.php
src/applications/metamta/storage/__tests__/PhabricatorMailConfigTestCase.php
<?php final class PhabricatorMailConfigTestCase extends PhabricatorTestCase { public function testMailerPriorities() { $mailers = $this->newMailersWithConfig( array( array( 'key' => 'A', 'type' => 'test', ), array( 'key' => 'B', 'type' => '...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/storage/__tests__/PhabricatorMetaMTAMailTestCase.php
src/applications/metamta/storage/__tests__/PhabricatorMetaMTAMailTestCase.php
<?php final class PhabricatorMetaMTAMailTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testMailSendFailures() { $user = $this->generateNewTestUser...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/storage/__tests__/PhabricatorMetaMTAReceivedMailTestCase.php
src/applications/metamta/storage/__tests__/PhabricatorMetaMTAReceivedMailTestCase.php
<?php final class PhabricatorMetaMTAReceivedMailTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testDropSelfMail() { $mail = new PhabricatorMetaMTA...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementReceiveTestWorkflow.php
src/applications/metamta/management/PhabricatorMailManagementReceiveTestWorkflow.php
<?php final class PhabricatorMailManagementReceiveTestWorkflow extends PhabricatorMailManagementWorkflow { protected function didConstruct() { $this ->setName('receive-test') ->setSynopsis( pht( 'Simulate receiving mail. This is primarily useful if you are '. 'developin...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementShowInboundWorkflow.php
src/applications/metamta/management/PhabricatorMailManagementShowInboundWorkflow.php
<?php final class PhabricatorMailManagementShowInboundWorkflow extends PhabricatorMailManagementWorkflow { protected function didConstruct() { $this ->setName('show-inbound') ->setSynopsis(pht('Show diagnostic details about inbound mail.')) ->setExamples( '**show-inbound** --id 1 --i...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementVolumeWorkflow.php
src/applications/metamta/management/PhabricatorMailManagementVolumeWorkflow.php
<?php final class PhabricatorMailManagementVolumeWorkflow extends PhabricatorMailManagementWorkflow { protected function didConstruct() { $this ->setName('volume') ->setSynopsis( pht('Show how much mail users have received recently.')) ->setExamples( '**volume**') ->set...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementSendTestWorkflow.php
src/applications/metamta/management/PhabricatorMailManagementSendTestWorkflow.php
<?php final class PhabricatorMailManagementSendTestWorkflow extends PhabricatorMailManagementWorkflow { protected function didConstruct() { $this ->setName('send-test') ->setSynopsis( pht( 'Simulate sending mail. This may be useful to test your mail '. 'configuration, o...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementUnverifyWorkflow.php
src/applications/metamta/management/PhabricatorMailManagementUnverifyWorkflow.php
<?php final class PhabricatorMailManagementUnverifyWorkflow extends PhabricatorMailManagementWorkflow { protected function didConstruct() { $this ->setName('unverify') ->setSynopsis( pht('Unverify an email address so it no longer receives mail.')) ->setExamples('**unverify** __addres...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementResendWorkflow.php
src/applications/metamta/management/PhabricatorMailManagementResendWorkflow.php
<?php final class PhabricatorMailManagementResendWorkflow extends PhabricatorMailManagementWorkflow { protected function didConstruct() { $this ->setName('resend') ->setSynopsis(pht('Send mail again.')) ->setExamples( '**resend** --id 1 --id 2') ->setArguments( array( ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementShowOutboundWorkflow.php
src/applications/metamta/management/PhabricatorMailManagementShowOutboundWorkflow.php
<?php final class PhabricatorMailManagementShowOutboundWorkflow extends PhabricatorMailManagementWorkflow { protected function didConstruct() { $this ->setName('show-outbound') ->setSynopsis(pht('Show diagnostic details about outbound mail.')) ->setExamples( '**show-outbound** --id 1...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementWorkflow.php
src/applications/metamta/management/PhabricatorMailManagementWorkflow.php
<?php abstract class PhabricatorMailManagementWorkflow extends PhabricatorManagementWorkflow {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementListOutboundWorkflow.php
src/applications/metamta/management/PhabricatorMailManagementListOutboundWorkflow.php
<?php final class PhabricatorMailManagementListOutboundWorkflow extends PhabricatorMailManagementWorkflow { protected function didConstruct() { $this ->setName('list-outbound') ->setSynopsis(pht('List outbound messages.')) ->setExamples('**list-outbound**') ->setArguments( arra...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementListInboundWorkflow.php
src/applications/metamta/management/PhabricatorMailManagementListInboundWorkflow.php
<?php final class PhabricatorMailManagementListInboundWorkflow extends PhabricatorMailManagementWorkflow { protected function didConstruct() { $this ->setName('list-inbound') ->setSynopsis(pht('List inbound messages.')) ->setExamples( '**list-inbound**') ->setArguments( ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/util/PhabricatorMailUtil.php
src/applications/metamta/util/PhabricatorMailUtil.php
<?php final class PhabricatorMailUtil extends Phobject { /** * Normalize an email address for comparison or lookup. * * Phabricator can be configured to prepend a prefix to all reply addresses, * which can make forwarding rules easier to write. This method strips the * prefix if it is present, and ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/query/PhabricatorMetaMTAApplicationEmailTransactionQuery.php
src/applications/metamta/query/PhabricatorMetaMTAApplicationEmailTransactionQuery.php
<?php final class PhabricatorMetaMTAApplicationEmailTransactionQuery extends PhabricatorApplicationTransactionQuery { public function getTemplateApplicationTransaction() { return new PhabricatorMetaMTAApplicationEmailTransaction(); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/query/PhabricatorMetaMTAMailSearchEngine.php
src/applications/metamta/query/PhabricatorMetaMTAMailSearchEngine.php
<?php final class PhabricatorMetaMTAMailSearchEngine extends PhabricatorApplicationSearchEngine { public function getResultTypeDescription() { return pht('MetaMTA Mails'); } public function getApplicationClassName() { return 'PhabricatorMetaMTAApplication'; } public function canUseInPanelContext...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/query/PhabricatorMetaMTAMemberQuery.php
src/applications/metamta/query/PhabricatorMetaMTAMemberQuery.php
<?php /** * Expands aggregate mail recipients into their component mailables. For * example, a project currently expands into all of its members. */ final class PhabricatorMetaMTAMemberQuery extends PhabricatorQuery { private $phids = array(); private $viewer; public function setViewer(PhabricatorUser $view...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/query/PhabricatorMetaMTAMailPropertiesQuery.php
src/applications/metamta/query/PhabricatorMetaMTAMailPropertiesQuery.php
<?php final class PhabricatorMetaMTAMailPropertiesQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $objectPHIDs; public function withIDs(array $ids) { $this->ids = $ids; return $this; } public function withObjectPHIDs(array $object_phids) { $this->objectPHIDs = $o...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/query/PhabricatorMetaMTAActor.php
src/applications/metamta/query/PhabricatorMetaMTAActor.php
<?php final class PhabricatorMetaMTAActor extends Phobject { const STATUS_DELIVERABLE = 'deliverable'; const STATUS_UNDELIVERABLE = 'undeliverable'; const REASON_NONE = 'none'; const REASON_UNLOADABLE = 'unloadable'; const REASON_UNMAILABLE = 'unmailable'; const REASON_NO_ADDRESS = 'noaddress'; const R...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/query/PhabricatorMetaMTAApplicationEmailQuery.php
src/applications/metamta/query/PhabricatorMetaMTAApplicationEmailQuery.php
<?php final class PhabricatorMetaMTAApplicationEmailQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $phids; private $addresses; private $addressPrefix; private $applicationPHIDs; public function withIDs(array $ids) { $this->ids = $ids; return $this; } public fu...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/query/PhabricatorMetaMTAMailQuery.php
src/applications/metamta/query/PhabricatorMetaMTAMailQuery.php
<?php final class PhabricatorMetaMTAMailQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $phids; private $actorPHIDs; private $recipientPHIDs; private $createdMin; private $createdMax; public function withIDs(array $ids) { $this->ids = $ids; return $this; } pu...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/query/PhabricatorMetaMTAActorQuery.php
src/applications/metamta/query/PhabricatorMetaMTAActorQuery.php
<?php final class PhabricatorMetaMTAActorQuery extends PhabricatorQuery { private $phids = array(); private $viewer; public function setViewer(PhabricatorUser $viewer) { $this->viewer = $viewer; return $this; } public function getViewer() { return $this->viewer; } public function withPHID...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/contentsource/PhabricatorEmailContentSource.php
src/applications/metamta/contentsource/PhabricatorEmailContentSource.php
<?php final class PhabricatorEmailContentSource extends PhabricatorContentSource { const SOURCECONST = 'email'; public function getSourceName() { return pht('Email'); } public function getSourceDescription() { return pht('Content sent by electronic mail, also known as e-mail.'); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/command/MetaMTAEmailTransactionCommand.php
src/applications/metamta/command/MetaMTAEmailTransactionCommand.php
<?php /** * @task docs Command Documentation */ abstract class MetaMTAEmailTransactionCommand extends Phobject { abstract public function getCommand(); /** * Return a brief human-readable description of the command effect. * * This should normally be one or two sentences briefly describing the * co...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/command/__tests__/MetaMTAEmailTransactionCommandTestCase.php
src/applications/metamta/command/__tests__/MetaMTAEmailTransactionCommandTestCase.php
<?php final class MetaMTAEmailTransactionCommandTestCase extends PhabricatorTestCase { public function testGetAllTypes() { MetaMTAEmailTransactionCommand::getAllCommands(); $this->assertTrue(true); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/action/PhabricatorMetaMTAErrorMailAction.php
src/applications/metamta/action/PhabricatorMetaMTAErrorMailAction.php
<?php final class PhabricatorMetaMTAErrorMailAction extends PhabricatorSystemAction { const TYPECONST = 'email.error'; public function getScoreThreshold() { return 6 / phutil_units('1 hour in seconds'); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/editor/PhabricatorMetaMTAApplicationEmailEditor.php
src/applications/metamta/editor/PhabricatorMetaMTAApplicationEmailEditor.php
<?php final class PhabricatorMetaMTAApplicationEmailEditor extends PhabricatorApplicationTransactionEditor { public function getEditorApplicationClass() { return pht('PhabricatorMetaMTAApplication'); } public function getEditorObjectsDescription() { return pht('Application Emails'); } public fun...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/stamp/PhabricatorPHIDMailStamp.php
src/applications/metamta/stamp/PhabricatorPHIDMailStamp.php
<?php final class PhabricatorPHIDMailStamp extends PhabricatorMailStamp { const STAMPTYPE = 'phid'; public function renderStamps($value) { if ($value === null) { return null; } $value = (array)$value; if (!$value) { return null; } // TODO: This recovers from a bug where bl...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/stamp/PhabricatorBoolMailStamp.php
src/applications/metamta/stamp/PhabricatorBoolMailStamp.php
<?php final class PhabricatorBoolMailStamp extends PhabricatorMailStamp { const STAMPTYPE = 'bool'; public function renderStamps($value) { if (!$value) { return null; } return $this->renderStamp($this->getKey()); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/stamp/PhabricatorMailStamp.php
src/applications/metamta/stamp/PhabricatorMailStamp.php
<?php abstract class PhabricatorMailStamp extends Phobject { private $key; private $value; private $label; private $viewer; final public function getStampType() { return $this->getPhobjectClassConstant('STAMPTYPE'); } final public function setKey($key) { $this->key = $key; return $this; ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/stamp/PhabricatorStringMailStamp.php
src/applications/metamta/stamp/PhabricatorStringMailStamp.php
<?php final class PhabricatorStringMailStamp extends PhabricatorMailStamp { const STAMPTYPE = 'string'; public function renderStamps($value) { if ($value === null || $value === '') { return null; } $value = (array)$value; if (!$value) { return null; } $results = array(); ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/exception/PhabricatorMetaMTAReceivedMailProcessingException.php
src/applications/metamta/exception/PhabricatorMetaMTAReceivedMailProcessingException.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 = a...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/exception/PhabricatorMetaMTAPermanentFailureException.php
src/applications/metamta/exception/PhabricatorMetaMTAPermanentFailureException.php
<?php final class PhabricatorMetaMTAPermanentFailureException extends Exception {}
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/application/PhabricatorMetaMTAApplication.php
src/applications/metamta/application/PhabricatorMetaMTAApplication.php
<?php final class PhabricatorMetaMTAApplication extends PhabricatorApplication { public function getName() { return pht('Mail'); } public function getBaseURI() { return '/mail/'; } public function getIcon() { return 'fa-send'; } public function getShortDescription() { return pht('Send...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php
src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php
<?php abstract class PhabricatorMailReplyHandler extends Phobject { private $mailReceiver; private $applicationEmail; private $actor; private $excludePHIDs = array(); private $unexpandablePHIDs = array(); final public function setMailReceiver($mail_receiver) { $this->validateMailReceiver($mail_receiv...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/replyhandler/PhabricatorMailTarget.php
src/applications/metamta/replyhandler/PhabricatorMailTarget.php
<?php final class PhabricatorMailTarget extends Phobject { private $viewer; private $replyTo; private $toMap = array(); private $ccMap = array(); private $rawToPHIDs; private $rawCCPHIDs; public function setRawToPHIDs(array $to_phids) { $this->rawToPHIDs = $to_phids; return $this; } public...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/receiver/PhabricatorMailReceiver.php
src/applications/metamta/receiver/PhabricatorMailReceiver.php
<?php abstract class PhabricatorMailReceiver extends Phobject { private $viewer; private $sender; final public function setViewer(PhabricatorUser $viewer) { $this->viewer = $viewer; return $this; } final public function getViewer() { return $this->viewer; } final public function setSender...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php
src/applications/metamta/receiver/PhabricatorObjectMailReceiver.php
<?php abstract class PhabricatorObjectMailReceiver extends PhabricatorMailReceiver { /** * Return a regular expression fragment which matches the name of an * object which can receive mail. For example, Differential uses: * * D[1-9]\d* * * ...to match `D123`, etc., identifying Differential Revisi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/receiver/PhabricatorApplicationMailReceiver.php
src/applications/metamta/receiver/PhabricatorApplicationMailReceiver.php
<?php abstract class PhabricatorApplicationMailReceiver extends PhabricatorMailReceiver { private $applicationEmail; private $emailList; private $author; abstract protected function newApplication(); final protected function setApplicationEmail( PhabricatorMetaMTAApplicationEmail $email) { $this...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/receiver/__tests__/PhabricatorObjectMailReceiverTestCase.php
src/applications/metamta/receiver/__tests__/PhabricatorObjectMailReceiverTestCase.php
<?php final class PhabricatorObjectMailReceiverTestCase extends PhabricatorTestCase { protected function getPhabricatorTestCaseConfiguration() { return array( self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, ); } public function testDropUnconfiguredPublicMail() { list($task, $us...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/receiver/__tests__/PhabricatorMailReceiverTestCase.php
src/applications/metamta/receiver/__tests__/PhabricatorMailReceiverTestCase.php
<?php final class PhabricatorMailReceiverTestCase extends PhabricatorTestCase { public function testAddressSimilarity() { $env = PhabricatorEnv::beginScopedEnv(); $env->overrideEnvConfig('metamta.single-reply-handler-prefix', 'prefix'); $base = 'alincoln@example.com'; $same = array( 'alincol...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/garbagecollector/MetaMTAMailReceivedGarbageCollector.php
src/applications/metamta/garbagecollector/MetaMTAMailReceivedGarbageCollector.php
<?php final class MetaMTAMailReceivedGarbageCollector extends PhabricatorGarbageCollector { const COLLECTORCONST = 'metamta.received'; public function getCollectorName() { return pht('Mail (Received)'); } public function getDefaultRetentionPolicy() { return phutil_units('90 days in seconds'); } ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php
src/applications/metamta/garbagecollector/MetaMTAMailSentGarbageCollector.php
<?php final class MetaMTAMailSentGarbageCollector extends PhabricatorGarbageCollector { const COLLECTORCONST = 'metamta.sent'; public function getCollectorName() { return pht('Mail (Sent)'); } public function getDefaultRetentionPolicy() { return phutil_units('90 days in seconds'); } protected...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/view/PhabricatorMetaMTAMailBody.php
src/applications/metamta/view/PhabricatorMetaMTAMailBody.php
<?php /** * Render the body of an application email by building it up section-by-section. * * @task compose Composition * @task render Rendering */ final class PhabricatorMetaMTAMailBody extends Phobject { private $sections = array(); private $htmlSections = array(); private $attachments = array(); p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/view/PhabricatorMetaMTAMailSection.php
src/applications/metamta/view/PhabricatorMetaMTAMailSection.php
<?php /** * Helper for building a rendered section. * * @task compose Composition * @task render Rendering * @group metamta */ final class PhabricatorMetaMTAMailSection extends Phobject { private $plaintextFragments = array(); private $htmlFragments = array(); public function getHTML() { return $th...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/view/__tests__/PhabricatorMetaMTAMailBodyTestCase.php
src/applications/metamta/view/__tests__/PhabricatorMetaMTAMailBodyTestCase.php
<?php final class PhabricatorMetaMTAMailBodyTestCase extends PhabricatorTestCase { public function testBodyRender() { $expect = <<<EOTEXT salmon HEADER bass trout EOTEXT; $this->assertEmail($expect); } private function assertEmail($expect) { $body = new PhabricatorMetaMTAMailBody(); $bod...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/applicationpanel/PhabricatorMetaMTAApplicationEmailPanel.php
src/applications/metamta/applicationpanel/PhabricatorMetaMTAApplicationEmailPanel.php
<?php final class PhabricatorMetaMTAApplicationEmailPanel extends PhabricatorApplicationConfigurationPanel { public function getPanelKey() { return 'email'; } public function shouldShowForApplication( PhabricatorApplication $application) { return $application->supportsEmailIntegration(); } p...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/edge/PhabricatorMetaMTAMailHasRecipientEdgeType.php
src/applications/metamta/edge/PhabricatorMetaMTAMailHasRecipientEdgeType.php
<?php final class PhabricatorMetaMTAMailHasRecipientEdgeType extends PhabricatorEdgeType { const EDGECONST = 57; }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/message/PhabricatorMailSMSMessage.php
src/applications/metamta/message/PhabricatorMailSMSMessage.php
<?php final class PhabricatorMailSMSMessage extends PhabricatorMailExternalMessage { const MESSAGETYPE = 'sms'; private $toNumber; private $textBody; public function newMailMessageEngine() { return new PhabricatorMailSMSEngine(); } public function setToNumber(PhabricatorPhoneNumber $to_number) { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/message/PhabricatorPhoneNumber.php
src/applications/metamta/message/PhabricatorPhoneNumber.php
<?php final class PhabricatorPhoneNumber extends Phobject { private $number; public function __construct($raw_number) { $number = preg_replace('/[^\d]+/', '', $raw_number); if (!preg_match('/^[1-9]\d{9,14}\z/', $number)) { throw new Exception( pht( 'Phone number ("%s") is not i...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/message/PhabricatorMailHeader.php
src/applications/metamta/message/PhabricatorMailHeader.php
<?php final class PhabricatorMailHeader extends Phobject { private $name; private $value; public function setName($name) { $this->name = $name; return $this; } public function getName() { return $this->name; } public function setValue($value) { $this->value = $value; return $thi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/message/PhabricatorMailEmailMessage.php
src/applications/metamta/message/PhabricatorMailEmailMessage.php
<?php final class PhabricatorMailEmailMessage extends PhabricatorMailExternalMessage { const MESSAGETYPE = 'email'; private $fromAddress; private $replyToAddress; private $toAddresses = array(); private $ccAddresses = array(); private $headers = array(); private $attachments = array(); private $sub...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/message/PhabricatorMailAttachment.php
src/applications/metamta/message/PhabricatorMailAttachment.php
<?php final class PhabricatorMailAttachment extends Phobject { private $data; private $filename; private $mimetype; private $file; private $filePHID; public function __construct($data, $filename, $mimetype) { $this->setData($data); $this->setFilename($filename); $this->setMimeType($mimetype);...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/message/PhabricatorMailExternalMessage.php
src/applications/metamta/message/PhabricatorMailExternalMessage.php
<?php abstract class PhabricatorMailExternalMessage extends Phobject { final public function getMessageType() { return $this->getPhobjectClassConstant('MESSAGETYPE'); } final public static function getAllMessageTypes() { return id(new PhutilClassMapQuery()) ->setAncestorClass(__CLASS__) -...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false