[horde] Ingo - no vacation filter available
Michael J Rubinsky
mrubinsk at horde.org
Thu Jul 30 13:57:07 UTC 2015
Quoting Jens Hellermann <hellermann at we-do.com>:
> Am 29.07.2015 um 20:57 schrieb Jan Schneider:
>>
>> Zitat von Jens Hellermann <hellermann at we-do.com>:
>>
>>>> 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.
>>
>> Your filter backend may not even support vacation rules.
>>
> Can you explain that a little more detailed, please? Is my IMAP
> Server the filter backend?
Possibly, if that's what you configured. Hard to say without seeing
your configuration, and knowing what you have installed on the mail
server. I.e., are you using sieve, procmail, etc...?
Or might it be that I have a problem with
> the php net_sieve modul? After installation I don't find it on the
> phpinfo page. Neither do I find any extension.so that I could include.
>
> Kind regards, Jens.
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
--
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5869 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/horde/attachments/20150730/829a05d5/attachment.bin>
More information about the horde
mailing list