[Kolab-devel] gunnar: server/kolab-filter/filter config.php, 1.3, 1.4 kolabfilter.php, 1.2, 1.3 kolabmailboxfilter.php, 1.2, 1.3

Richard Bos ml at radoeka.nl
Fri Nov 30 23:26:54 CET 2007


Op Thursday 29 November 2007 13:29:13 schreef Richard Bos:
> So, actually what you really want is a script, that converts the resmgr
> conf template in this config.php isn't it.  I tried to accomplish that, and
> I'm almost there, but the @@@if etc thingies.  Perhaps someone else knows a
> solution for that??

I changed the script language from bash to perl, and copied some of code from 
server/kolabconf/lib/Kolab/Conf.pm   The result is now quite nice, almost 
perfect :)
Please find the new perl script attached.  The diff between config.php and de 
converted resmgr.conf template is shown below:

43c43
< $conf['filter']['lmtp_host'] = $conf['filter']['imap_server'];
---
> $conf['filter']['lmtp_host'] = 'localhost';

Explainable and acceptable diff.

75c75
< $conf['filter']['verify_from_header'] = true;
---
> $params['verify_from_header'] = ('true'=='TRUE');
83c83
< $conf['filter']['allow_sender_header'] = true;
---
> $params['allow_sender_header'] = ('true'=='TRUE');

Is  ('true'=='TRUE')  okay here?

88c88
< $conf['filter']['reject_forged_from_header'] = false;
---
> $params['reject_forged_from_header'] = false;

It looks like $params should be changed to $conf['filter'] isn't it?


121c121
< $conf['filter']['priv_key_file'] = '@sysconfdir@/kolab/res_priv.pem';
---
> $conf['filter']['priv_key_file'] = '/kolab/etc/kolab/res_priv.pem';

Seems an error in config.php


130c130
< $conf['filter']['freebusy_url'] 
= 'http://kolab.example.com/freebusy/${USER}.xfb';
---
> $conf['filter']['freebusy_url'] = 'kolab.example.com/freebusy/${USER}.xfb';

Seems an error in config.php


133c133
< $conf['filter']['pfb_trigger_url'] 
= 'http://@@@fqdnhostname@@@/freebusy/trigger/${USER}/${FOLDER}.xpfb';
---
> $conf['filter']['pfb_trigger_url'] 
= 'https://kolab.example.com/freebusy/trigger/${USER}/${FOLDER}.xpfb';


Seems an error in config.php

Should the script be stored in cvs (in the kolabd/kolabd/templates directory).


-- 
Richard Bos
Without a home the journey is endless
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resmgr-values.pl
Type: application/x-perl
Size: 2980 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20071130/efa92dd3/attachment.pl>


More information about the devel mailing list