[Kolab-devel] cyrus imap altnamespace

Jean-Philippe jpisard at free.fr
Sun Oct 31 19:32:36 CET 2010


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');
     }




More information about the devel mailing list