[Kolab-devel] cyrus imap altnamespace
jpisard at free.fr
jpisard at free.fr
Sun Oct 31 22:22:43 CET 2010
oki
I'm going to download and look'at Namespace structure code (hoops i need a new server)
In few days, i send a patch in forder file or in Namespace struct or in an other one
thank's for the answer
----- Mail Original -----
De: "Gunnar Wrobel" <wrobel at kolabsys.com>
À: kolab-devel at kolab.org
Envoyé: Dimanche 31 Octobre 2010 22h02:34 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [Kolab-devel] cyrus imap altnamespace
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.
_______________________________________________
Kolab-devel mailing list
Kolab-devel at kolab.org
https://kolab.org/mailman/listinfo/kolab-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/devel/attachments/20101031/8f36a91a/attachment.html>
More information about the devel
mailing list