[horde] Ingo - no vacation filter available

Jens Hellermann hellermann at we-do.com
Mon Jul 20 09:17:39 UTC 2015



> On Sat, Jul 18 2015, at 22:26:53 +0200, Jens Wahnes wrote:
>
>> On Fri, Jul 17 2015, at 12:11:24 +0200, Jens Hellermann wrote:
>>> So I wrote a prefs.local php (I seperated the line here after the ; for
>>> better readability).
>>>
>>> <?php
>>>
>>> $_prefs['rules']['value'] =
>>> 'a:5:{i:0;a:2:{s:4:"name";s:9:"Whitelist";s:6:"action";i:' .
>>> Ingo_Storage::ACTION_WHITELIST . ';
>>> }i:1;a:3:{s:4:"name";s:8:"Vacation";s:6:"action";i:' .
>>> Ingo_Storage::ACTION_VACATION . ';s:7:"enable";b:1;
>>> }i:2;a:2:{s:4:"name";s:9:"Blacklist";s:6:"action";i:' .
>>> Ingo_Storage::ACTION_BLACKLIST . ';
>>> }i:3;a:3:{s:4:"name";s:11:"Spam Filter";s:6:"action";i:' .
>>> Ingo_Storage::ACTION_SPAM . ';s:7:"disable";b:1;
>>> }i:4;a:3:{s:4:"name";s:7:"Forward";s:6:"action";i:' .
>>> Ingo_Storage::ACTION_FORWARD . ';s:7:"disable";b:1;}}',
>>> $_prefs['rules']['locked'] = false,
>>> $_prefs['rules']['type'] => 'implicit'
>>>
>>> When I try to lock on to Horde Webmail the website is stuck and shows
>>> plain white.
>> The last line (with the 'implicit' setting) could use a semicolon as
>> well but I think it's not strictly required if it's the last line
>> within the statement block.
> That line's got another problem I just saw.  You wrote "=>" but
> probably meant to use just "=".  The "=>" operator is used with
> associative arrays only, I think.  Be that as it may, what I am sure of
> is that it is wrong to use it where you used it.  The "php -l" trick
> would have found that ereor as well, of course, but then it's sometimes
> hard to find out what PHP is complaining about when one thinks that
> everything looks OK at first sight ...
>
>
> Jens
Hello Jens W. ,
?php


thank you for your totally correct objections. I corrected the
prefs.local.php with the semicolons and the equal sign instead of the
arrow. It looks like this now:

<?php

$_prefs['rules']['value'] =
'a:5:{i:0;a:2:{s:4:"name";s:9:"Whitelist";s:6:"action";i:' .
Ingo_Storage::ACTION_WHITELIST . ';
}i:1;a:3:{s:4:"name";s:8:"Vacation";s:6:"action";i:' .
Ingo_Storage::ACTION_VACATION . ';s:7:"enable";b:1;
}i:2;a:2:{s:4:"name";s:9:"Blacklist";s:6:"action";i:' .
Ingo_Storage::ACTION_BLACKLIST . ';
}i:3;a:3:{s:4:"name";s:11:"Spam Filter";s:6:"action";i:' .
Ingo_Storage::ACTION_SPAM . ';s:7:"disable";b:1;
}i:4;a:3:{s:4:"name";s:7:"Forward";s:6:"action";i:' .
Ingo_Storage::ACTION_FORWARD . ';s:7:"disable";b:1;}}';

$_prefs['rules']['locked'] = false;
$_prefs['rules']['type'] = 'implicit';

The php -l tricks says the syntax is fine. Only thing is I still cannot
spot the vacation filter anywhere. Might it be, that as it is an
Ingo_Storage setting, that I have to change some permissions in the file
system?  I just ask, because this is also on my list for caching in the
filesystem, which doesn't work at all until now.

Kind regards, Jens.





More information about the horde mailing list