the monitoring module runs time based actions, which is why I mentioned it - but only as an example:
--------------------------------------------------------------------
public function onLoad() {
global $app;
/*
* Do the monitor every n minutes and write the result to the db
*/
$min = @date('i');
if (($min % $this->interval) == 0) {
$this->_doMonitor();
}
}
Executed by the server cron job that runs every minute we have all that would be needed. The hook could be places in the mail_module onLoad() and as the autoresponder dates controls allow the user to define times down to 5 minute intervals it would be accurate.
|