[Kolab-devel] horde AND kolab's private distribution lists

Mike Gabriel m.gabriel at das-netzwerkteam.de
Fri Mar 21 06:23:23 CET 2008


hi gunnar,

Quoting Mike Gabriel <m.gabriel at das-netzwerkteam.de>:

> hi gunnar,
>
> Quoting Gunnar Wrobel <wrobel at pardus.de>:
>
>> Hi Mike,
>>
>> Mike Gabriel <m.gabriel at das-netzwerkteam.de> writes:
>>
>>> hi gunnar,
>>>
>>> i would like to reintroduce the discussion about implementation of
>>> kolab's private distribution lists into horde. to start this from
>>> scratch seems to me as a rather big thing. could you give a hint on
>>> where to look (mysql dist lists already exist in horde?) to start with
>>> (as a template).
>>>
>>> one of my customers repeatatively asks for private distribution lists,
>>> so this might be a piece of work i might have to indulge in in the
>>> near future...
>>
>> the dist-list format is defined within the Kolab format. It shouldn't
>> be too hard to define a driver within Kolab/XML that handles the
>> format correctly. What might be more difficult would be to find out
>> how to map this into Horde. Without looking at the code I could
>> imagine representing these list either as a Horde::Group, a
>> Turba::vbook or Turba::favourites. But without looking at the code I'm
>> currently unable to say which variant would be the correct one.
>>
>> Cheers,
>>
>> Gunnar
>>
>
> i looked at the turba code. the IMSP driver looks like it implements
> distribution lists in a similar way as kolab does.
>
> thus, the dist list has to go into the kolab driver(???).
>
> i will look into things more closely.
> mike

the night was long...

i changed some lines in sources.php (kolab source) and by that i  
activated the distribution list feature for kolab that is already  
inherent in horde.

i then found a restraint in your code (SORRY). you presume  
(getAppConsts) that each horde application can be bijectively mapped  
to a single xml/mime type (kronolith <->  xml kolab event, nag <-> xml  
kolab task, etc.)

turba can - introducing distribution lists - now handle two xml/mime  
types. this breaks the cleanliness of code a bit.

the current status now is:

   => i can add empty distribution lists with the correct kolab format in my
      contact folders

what i still need to do:

   => add members to distribution lists

for this, maybe you can help me:

the Kolab_XML_distributionlist::_load($object) method receives an  
array that contains a string for the Turba_Objects of __members in the  
distribution list. is there an easy way in horde to turn a string like  
this:

"a:4:{i:0;s:32:"7a32bed28445883cbbebd881222d7a21";i:1;s:10:"GhdJd6tXel";i:2;s:32:"e65eb141dc8c46d3f110c88ec751b834";i:3;s:10:"Up4GMFZhYG"

into the corresponding kolab objects? i know the long hashes are the  
UIDs of my kolab contacts / Turba_Objects. is there a function that  
cuts the string into its components? just trying to avoid to reinvent  
the wheel...

cheers,
mike


-- 

das netzwerkteam
mike gabriel, hamburger chaussee 240, 24113 kiel

fon: +49 431 64 74 196
voip/voicemail: +49 431 643 643 6
fax: +49 431 64 74 276
mail: m.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb




More information about the devel mailing list