12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- define('INSTALLDIR', dirname(__DIR__));
- define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
- $helptext = <<<END_OF_HELP
- Script for converting mail messages into notices. Takes message body
- as STDIN.
- END_OF_HELP;
- require_once INSTALLDIR . '/scripts/commandline.inc';
- require_once INSTALLDIR . '/lib/util/mailhandler.php';
- if (common_config('emailpost', 'enabled')) {
- $mh = new MailHandler();
- $mh->handle_message(file_get_contents('php://stdin'));
- }
|