[ingo] Vacations problem

Nicolás Valera nvalera at gmail.com
Thu Jun 26 12:43:21 UTC 2014


 > Quoting woj woj <wojnas at gmail.com>:

 > Hello,
 > I got problem with vacations with sql backend (different host) in (ingo)
 > 3.1.3.
 > I dont see vacation option in filters menu.
 >
 > Here is my backend.local.php
 >
 > $backends['customsql']['disabled']='false';
 > $backends['customsql']['preferred']='server_domain';
 > $backends['customsql']['transport']['Ingo::RULE_ALL']['driver']='sql';

 > It's [Ingo::RULE_ALL] (PHP constant declaration ... resolves to
 > integer 0) instead of ['Ingo::RULE_ALL'] (the string 'Ingo::RULE_ALL',
 > which has no meaning in Ingo).

 > michael

Hi, i have followed the first post but it doesn't work for me.
It seems like it doesn't use my custom parameters.

Here is my backend.local.php

$backends['imap']['disabled'] = true;
$backends['customsql']['disabled']=false;
$backends['customsql']['transport'][Ingo::RULE_ALL]['driver']='sql';
$backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['username'] 
= 'user';
$backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['password'] 
= 'pass';
$backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['hostspec'] 
= '10.10.0.100';
$backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['port'] 
= '3306';
$backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['protocol'] 
= 'tcp';
$backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['database'] 
= 'postfix';
$backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['charset'] 
= 'utf-8';
$backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['ssl'] 
= 'false';
$backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['splitread'] 
= 'false';
//$backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['phptype'] 
= 'mysql';
$backends['customsql']['script'][Ingo::RULE_ALL]['driver'] = 'customsql';
$backends['customsql']['script'][Ingo::RULE_ALL]['params']['vacation_unset'] 
= 'UPDATE autoresponder SET active = 0 WHERE address = %u';
$backends['customsql']['script'][Ingo::RULE_ALL]['params']['vacation_set'] 
= 'REPLACE INTO autoresponder (active, subject, message, address) VALUES 
(1, %s, %m, %u)';

Thanks in advance!


More information about the ingo mailing list