index 15c3c53c3a8fc128654e31136942f831f6cdea8d..e1becdae95add284773e002467c6e61937bc35bf 100644 (file)
function connect($gosaMailServer)
{
$cfg=array();
+
/* Connect to IMAP server. I don't want to see these warning here... */
$this->gosaMailServer= $gosaMailServer;
if (!isset($this->config[$gosaMailServer])){
{
/* Workaround for the php imap extension */
if ($gosaMailQuota == ""){
- $gosaMailQuota= "0";
+ $gosaMailQuota= "2147483647";
}
/* Write mail quota */
function setSharedFolderPermissions($folder, $permissions)
{
- /* Show warning message in case of missing imap_getacl */
- if (!function_exists('imap_getacl')){
- print_red (_("Warning: imap_getacl is not implemented, wouldn't modify acl informations."));
- return;
- }
-
/* Get list of subfolders */
$folders= $this->getMailboxList($folder, "");
$folders[]= $folder;
if (function_exists('imap_getacl')){
/* Remove all acl's for this folder */
- $users= imap_getacl ($this->mbox, $subfolder);
+ $users= @imap_getacl ($this->mbox, $subfolder);
foreach ($users as $userid => $perms){
imap_setacl ($this->mbox, $subfolder, $userid, "");
}
+ } else {
+ print_red (_("Warning: imap_getacl is not implemented, can't remove acl informations."));
}
/* Set permissions for this folder */