hungarian translation
First, you need to have vacation support on the IMAP server as well. What are you using for that?
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA
hungarian translation
My mistake. Please remove it...
Last edited by dziobak; 04-06-2010 at 08:33 PM.
Progress how? The current version is working fine for me.
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA
I have just try the vacation plugin
1.9.2 seems to work but 1.9.3 have at least two problems :
1) no confing.inc.php file in the zip file
(i have use the one from 1.9.2)
2) i have this strange message :
Vacation plugin: Driver '' cannot be loaded using plugins/vacation/lib/.class.php
with this config file :
[default]
driver = "setuid"
executable = "/usr/bin/squirrelmail_vacation_proxy"
(this same file did seems to works with 1.9.2)
Alternaly the config.mk for the squirrelmail_vacation_proxy is set to install squirrelmail_vacation_proxy binary in /plugin/extra and not in /usr/bin/ as said in the readme.txt
I've managed to track the problem a bit more.
In VacationConfig.class.php, in function checkAllowedParameters(), the test for validity appears to be the line:
(at least, a return error value is set if this condition is true). However, at the bottom of the function, the return value is simply:Code:if (! empty($diff) && !in_array(key($diff),array('driver','body','subject'))) {
Now I'm not sure I understand clearly how checkAllowedParameters() is supposed to work; but it seems to me that if "driver" "body" or "subject" are listed in the parameters, $diff is not going to be empty (If I'm reading it right, $diff should be the list of all parameters minus those specifically supported by the currently selected driver). The validity test will pass (because 'driver', 'body', and 'subject' are special cased); however, the routine will return FALSE because $diff isn't empty.Code:return (empty($diff));
This means that no params are passed up from getCurrentConfig(); but at the same time, hasError isn't set.
---
On vaguely related topic: all the files in 1.9.3 unzip with permissions 666 and folders with permission 777. That's kind'a scary.
Here is a patch for VacationConfig.class.php which I think addresses the just mentioned bug:
This also makes it apparent that the values provided in the example config.ini are bogus: defaultbody and defaultsubject don't appear to be valid parameters.Code:*** plugins/vacation/lib/VacationConfig.class.php~ Tue Mar 9 15:13:56 2010 --- plugins/vacation/lib/VacationConfig.class.php Fri Jun 11 17:23:03 2010 *************** *** 168,180 **** { $keys = $this->allowedOptions[$this->currentArr['driver']]; ! $diff = array_diff_key($this->currentArr,array_flip(array_keys($keys))); ! if (! empty($diff) && !in_array(key($diff),array('driver','body','subject'))) { // Invalid options found ! $this->hasError = sprintf("Invalid option found in config.ini for %s driver and section [%s]: %s is not supported", $this->currentArr['driver'],$this->currentHost,key($diff)); } return (empty($diff)); --- 168,184 ---- { $keys = $this->allowedOptions[$this->currentArr['driver']]; ! $diff = array_diff_key($this->currentArr, ! array_flip(array_keys($keys)), ! array('driver' => 1, ! 'body' => 1, ! 'subject' => 1)); ! if (! empty($diff)) { // Invalid options found ! $this->hasError = sprintf("Invalid option found in config.ini for %s driver and section [%s]: '%s' is not supported",
Last edited by ericx; 06-11-2010 at 10:45 PM.
Hi,
I have a problem with the vacation plugin. I Tried to use virtual driver and it seems to work but in config tab i get an
"Vacation plugin: Driver '' cannot be loaded using plugins/vacation/lib/.class.php"
error. After reading INSTALL.TXT, README.txt, googling...... I can't find the solution, any suggestion?
I'm on debian + postfix (vistual users) + mysql + dovecot
here's my /plugins/vaction/config.ini
Thanks in advance,Code:[default] driver = "virtual" defaultsubject = "Fuera de la oficina" defaultbody = "default.txt" [*** SQL/Virtual Driver ***] dsn = "mysql://<mydbuser>:<mypass>@localhost/<mailserverdb>" transport = "vacation.<mydomain>" dbase = "<mydatabase>" always_keep_copy = true select_query = "SELECT destination FROM %m.virtual_aliases WHERE source='%e' AN$ delete_query = "DELETE FROM %m.virtual_aliases WHERE domain_id=%i AND source='%$ insert_query = "INSERT INTO %m.virtual_aliases (domain_id,source,destination) V$ domain_lookip_query = "SELECT id FROM mailserver.virtual_domains WHERE name='%d$ createvacationconf = true
Sr.Albiz
Hi jaspersl et. al.
I woul dlike to get this to work with cpanel, hostmonster, but need some direction. What can I tell you so you can help?
There are currently 1 users browsing this thread. (0 members and 1 guests)