123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
- $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/mailhandler.php';
- if (common_config('emailpost', 'enabled')) {
- $mh = new MailHandler();
- $mh->handle_message(file_get_contents('php://stdin'));
- }
|