Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
As far as I know, there is no evaluation function for dates available in sieve filtering language. So the date functions will work only on courier systems.
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
Currently there is no api / action hook in ispconfig to control actions based on a specific date or run actions out of order. But we might implement such a api in future. The monitoring module is for monitoring only, I think we should not add email functions to it.
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.
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
The mail module is only loaded if there is a change in one of the database tables as it is not a core module. So it is not loaded or available when the monitor cronjob runs. I dont think that it is a good idea to add this into the monitor as this would make the software unmaintainable over the long time. I think a clean integration of a API for time based jobs is a better choice.
Recent comments
22 hours 25 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 3 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 8 hours ago
2 days 15 min ago
2 days 1 hour ago
2 days 4 hours ago