Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st August 2011, 14:14
wyrie wyrie is offline
Junior Member
 
Join Date: Jan 2009
Posts: 28
Thanks: 2
Thanked 9 Times in 6 Posts
Default Sieve & autoresponder dates

Hi

Has anyone used the auto responder dates with sieve as the filtering backend?
Reply With Quote
Sponsored Links
  #2  
Old 31st August 2011, 14:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 31st August 2011, 14:35
wyrie wyrie is offline
Junior Member
 
Join Date: Jan 2009
Posts: 28
Thanks: 2
Thanked 9 Times in 6 Posts
Default

Perhaps it would be better to move the date evaluation away from the filtering language and to the monitoring module, for example.

That way ISPC would control the function regardless of the backend, OS etc.
Reply With Quote
  #4  
Old 31st August 2011, 14:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 31st August 2011, 14:54
wyrie wyrie is offline
Junior Member
 
Join Date: Jan 2009
Posts: 28
Thanks: 2
Thanked 9 Times in 6 Posts
Default

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.
Reply With Quote
  #6  
Old 31st August 2011, 16:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,655 Times in 4,464 Posts
 
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in Autoresponder management manarak General 0 28th February 2011 10:45
ISPConfig 3 + Dovecot + Squirrelmail + Sieve Chrisss Installation/Configuration 3 19th January 2011 04:29
HOWTO: Dovecot 1.2.9 + sieve + quota radim_h Tips/Tricks/Mods 10 22nd December 2010 09:35
ISPConfig 3 problems with autoresponder raiman Installation/Configuration 7 1st September 2010 13:53
Autoresponder / Local Username / Reject / Bounce Yves Installation/Configuration 3 12th July 2006 14:58


All times are GMT +2. The time now is 02:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.