[Kolab-devel] Declaring a new folder type and format for Horde preferences

Gunnar Wrobel wrobel at pardus.de
Thu Mar 13 08:36:12 CET 2008


Additional folder type
----------------------

In addition to the <type>s defined in

http://kolab.org/doc/kolabformat-2.0rc5-html/c154.html

Horde now allows the type "prefs".



Format Of Preferences
---------------------

The mimetype for preferences is "application/x-vnd.kolab.prefs". This
is the specification of the body contents:

        <?xml version="1.0" encoding="UTF-8"?>
        <prefs version="1.0">
          <!-- Common fields -->
          <uid>(string, no default)</uid>
          <body>(string, default empty)</body>
          <categories>(string, default empty)</categories>
          <creation-date>(datetime, no default)</creation-date>
          <last-modification-date>(datetime, no default)</last-modification-date>
          <sensitivity>(string, default public)</sensitivity>
          {<inline-attachment>(string, no default)</inline-attachment>}
          {<link-attachment>(string, no default)</link-attachment>}
          <product-id>(string, default empty)</product-id>
        
          <!-- Preferences specific fields -->
          <prefs>(string, default empty)</prefs>
        </prefs>

See 

http://kolab.org/doc/kolabformat-2.0rc5-html/c183.html

for the description of the common fields.

There can be any number of "prefs" elements. Each client is free to
choose the desired format within these fields as appropriate.


Example
-------

This is an example object from Horde:

<?xml version=3D"1.0"?>
<prefs version=3D"1.0">
  <uid>7bba75ca0aa90a23f9e099c4b1a4407d</uid>
  <body></body>
  <categories>mnemo</categories>
  <creation-date>2008-03-04T13:23:14Z</creation-date>
  <last-modification-date>2008-03-04T13:23:14Z</last-modification-date>
  <sensitivity>public</sensitivity>
  <product-id>Horde::Kolab</product-id>
  <prefs>show_notepad:MA=3D=3D</prefs>
  <prefs>show_panel:MQ=3D=3D</prefs>
  <prefs>sortby:MA=3D=3D</prefs>
  <prefs>sortdir:MA=3D=3D</prefs>
  <prefs>memo_categories:</prefs>
  <prefs>memo_colors:</prefs>
  <prefs>display_notepads:YToxOntpOjA7czoyMDoid3JvYmVsQGRldi5wYXJkdXMuZGUiO3=
0=3D</prefs>
  <prefs>delete_opt:MQ=3D=3D</prefs>
</prefs>


-- 
______ http://kdab.com _______________ http://kolab-konsortium.com _

p at rdus Kolab work is funded in part by KDAB and the Kolab Konsortium

____ http://www.pardus.de _________________ http://gunnarwrobel.de _
E-mail : p at rdus.de                                 Dr. Gunnar Wrobel
Tel.   : +49 700 6245 0000                          Bundesstrasse 29
Fax    : +49 721 1513 52322                          D-20146 Hamburg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   >> Mail at ease - Rent a kolab groupware server at p at rdus <<                 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the devel mailing list