[horde] Ingo - no vacation filter available

Jens Wahnes wahnes at uni-koeln.de
Sat Jul 18 20:41:05 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


More information about the horde mailing list