mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
7fa2343822
Summary: Ref T3306. Moves this from the web to the CLI, which is a tiny bit clunkier but way better as far as policies go and more repeatable for development. See discussion in D6413. Test Plan: Ran `bin/mail receive-test`, verified mail was received. Used and abused various options. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T3306 Differential Revision: https://secure.phabricator.com/D6417
25 lines
659 B
PHP
Executable file
25 lines
659 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
$root = dirname(dirname(dirname(__FILE__)));
|
|
require_once $root.'/scripts/__init_script__.php';
|
|
|
|
$args = new PhutilArgumentParser($argv);
|
|
$args->setTagline('manage mail');
|
|
$args->setSynopsis(<<<EOSYNOPSIS
|
|
**mail** __command__ [__options__]
|
|
Manage Phabricator mail stuff.
|
|
|
|
EOSYNOPSIS
|
|
);
|
|
$args->parseStandardArguments();
|
|
|
|
$workflows = array(
|
|
new PhabricatorMailManagementResendWorkflow(),
|
|
new PhutilHelpArgumentWorkflow(),
|
|
new PhabricatorMailManagementShowOutboundWorkflow(),
|
|
new PhabricatorMailManagementShowInboundWorkflow(),
|
|
new PhabricatorMailManagementReceiveTestWorkflow(),
|
|
);
|
|
|
|
$args->parseWorkflows($workflows);
|