[Kolab-devel] cyrus imap altnamespace

Gunnar Wrobel wrobel at kolabsys.com
Sun Oct 31 22:02:34 CET 2010


Hi Jean-Philippe,

Zitat von Jean-Philippe <jpisard at free.fr>:

> Hi
>
>
> the target :
> use horde with altnamespace
>
> I have change severals functions in horde framework :
> just in the class Kolab_Folder
>
> and I have add one general parameter :
> ['kolab']['imap']['altnamespace']
>
>
>
> sample of one change in source code:
>
>      function setName($name)
>      {
>         global $conf;
>      $check_inbox=true;
>         if (isset($conf['kolab']['imap']['altnamespace'])) {
>          if ($conf['kolab']['imap']['altnamespace']) $check_inbox=false;
>      }
>
>
>          $name = str_replace(':', '/', $name);
>
>      if ($check_inbox)
>      {
>          if (substr($name, 0, 5) != 'user/' && substr($name, 0, 7) !=
> 'shared.') {
>              $name = 'INBOX/' . $name;
>          }
>      }
>          $this->new_name = String::convertCharset($name,
> NLS::getCharset(), 'UTF7-IMAP');
>      }

May I point you to upstream where some IMAP namespace support has  
already been implemented:  
http://git.horde.org/horde/-/browse/framework/Kolab_Storage/lib/Horde/Kolab/Storage/?sa=1

This will be part of Kolab Server 2.3 (which we hopefully release soon).

"altnamespace" is not in there yet but if in order to be included into  
Kolab Storage it would need to fit the Namespace structure that is  
available in the code already.

Maybe you can submit a full patch in a Kolab issue and we can continue  
the discussion based on that?

Cheers,

Gunnar

>
> _______________________________________________
> Kolab-devel mailing list
> Kolab-devel at kolab.org
> https://kolab.org/mailman/listinfo/kolab-devel
>



--
Gunnar Wrobel
Developer, Kolab Systems AG

e: wrobel at kolabsys.com
t: +49 700 6245 0000
w: http://www.kolabsys.com

pgp: 9703 43BE

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the devel mailing list