Fwd: Re: [Kolab-devel] The kolab-resource-handlers module

Richard Bos richard at radoeka.nl
Fri Sep 30 14:02:51 CEST 2005


[resent.  Could anyone comment on the questions asked below]

Marcus already started working on the porting the resource module, but we need 
to find a smart way to get the fbview installed.

> > Or a
> > strategy to distract the code from fbview ....
>
> First find out which code is used by resmgr and freebusy.
> In a test installation you could search the files for includes
> for dependencies and then verify the analyis by deleting the parts
> that you think are fbview only.
> This way it should get smaller.

There seems quite some code involved:

kolab-resource-handlers/resmgr> grep require *php  | grep -v kolabfilter
kolabmailboxfilter.php:require_once 'PEAR.php';
kolabmailboxfilter.php:require_once '@l_prefix@/etc/resmgr/resmgr.conf';
kolabmailtransport.php:    require_once 'Net/LMTP.php';
kolabmailtransport.php:    require_once 'Net/SMTP.php';
olhacks.php:require_once HORDE_BASE . '/lib/core.php';
olhacks.php:require_once 'Horde/iCalendar.php';
olhacks.php:require_once 'Horde/NLS.php';
olhacks.php:require_once 'Horde/MIME.php';
olhacks.php:require_once 'Horde/MIME/Message.php';
olhacks.php:require_once 'Horde/MIME/Headers.php';
olhacks.php:require_once 'Horde/MIME/Part.php';
olhacks.php:require_once 'Horde/MIME/Structure.php';
olhacks.php:  require_once 'Mail/mimeDecode.php';
olhacks.php:  require_once 'Mail.php';
resmgr.php:require_once 'Net/IMAP.php';
resmgr.php:require_once HORDE_BASE . '/lib/core.php';
resmgr.php:require_once 'Horde/iCalendar.php';
resmgr.php:require_once 'Horde/NLS.php';
resmgr.php:require_once 'Horde/MIME.php';
resmgr.php:require_once 'Horde/MIME/Message.php';
resmgr.php:require_once 'Horde/MIME/Headers.php';
resmgr.php:require_once 'Horde/MIME/Part.php';
resmgr.php:require_once 'Horde/MIME/Structure.php';
resmgr.php:require_once 'Horde/Text.php';
resmgr.php:require_once 'freebusy/recurrence.class.php';
resmgr.php:        require_once 'Net/SMTP.php';
resmgr.php:        require_once 'Mail.php';
resmgr.php:      require_once 'Mail.php';

kolab-resource-handlers/freebusy> grep require *php | grep -vE "freebusy/|
resmgr|URL"
freebusy.class.php:    require_once('Net/IMAP.php');
freebusy.class.php:    require_once 'PEAR.php';
freebusy.class.php:    require_once 'Horde/iCalendar.php';
freebusy.class.php:    require_once 'Horde/MIME.php';
freebusy.class.php:    require_once 'Horde/MIME/Message.php';
freebusy.class.php:    require_once 'Horde/MIME/Structure.php';
freebusycollector.class.php:    require_once 'PEAR.php';
freebusycollector.class.php:    require_once 'Horde/iCalendar.php';
freebusycollector.class.php:    require_once 'Horde/MIME.php';
freebusycollector.class.php:    require_once 'Horde/MIME/Message.php';
freebusycollector.class.php:    require_once 'Horde/MIME/Structure.php';

Are the require_once lines without 'horde', just reqular php modules (see 
above) or are these delivered by fbview as well?  If only the 'horde' modules 
are needed from fbview, the following modules are used:

Horde/iCalendar.php
Horde/MIME/Headers.php
Horde/MIME/Message.php
Horde/MIME/Part.php
Horde/MIME.php
Horde/MIME/Structure.php
Horde/NLS.php
Horde/Text.php
/lib/core.php

Would it be sufficient to copy those modules from the fbview directory, if
the fbview functionality is not wanted?

BTW: the /lib/core.php comes from: HORDE_BASE . '/lib/core.php
I don't know what that means, but I assume for php devs that is not an issue.  
What is  require_once HORDE_BASE . '/lib/core.php'; 
actually doing?


--
Richard Bos
Without a home the journey is endless




More information about the devel mailing list