mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 10:52:41 +01:00
e4525f9de1
Summary: We can't show this stuff on the web UI because it has password reset links and private reply-to addresses, but we can provide easier CLI tools than "root around in the database". Land a rough version of `bin/mail show-inbound` and `bin/mail show-outbound`. Test Plan: Used both commands to examine mail from the CLI. Reviewers: btrahan Reviewed By: btrahan CC: tido, euresti, aran Differential Revision: https://secure.phabricator.com/D5963
24 lines
605 B
PHP
Executable file
24 lines
605 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(),
|
|
);
|
|
|
|
$args->parseWorkflows($workflows);
|