コード例 #1
0
ファイル: qmid.php プロジェクト: jorgefuertes/QMID
if (!defined('LOG')) {
    define('LOG', true);
}
if (!defined('DELIVER')) {
    define('DELIVER', false);
}
/* Instantiate general output and error: */
$output = new Output();
$error = new ErrorControl();
$output->say("+++ QMID DISPATCHER +++", 2);
$output->say("> Started at: " . date(DATEFORMAT));
/* New dispatcher wich parses the rules: */
$dispatcher = new Dispatcher();
/* Imap: */
$imap = new imap();
$output->say("> " . $imap->count() . " messages to process.");
$dispatcher->imap = $imap;
/* Process the mail */
$dispatcher->processMailbox();
/* END */
unset($imap);
$error->Finish();
/*
 * All imap work.
 */
class imap
{
    private $conn;
    private $output;
    private $error;
    private $aMailboxes;