diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods.inc b/gosa-plugins/mail/personal/mail/class_mail-methods.inc
index 73a91be74542d2229c8f411ca8b78720a7e3da92..a17d77e4a0462d88de166d22461705d524590a50 100644 (file)
"<b>MAIL:</b> Shared folder creation set to");
$this->share_id = $tmp;
}
+ $tmp = $this->config->get_cfg_value("gosaSharedPrefix");
+ if(!empty($tmp)){
+ @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__, "<i>".$tmp."</i>",
+ "<b>MAIL:</b> Shared folder prefix set to");
+ $this->gosaSharedPrefix = $tmp;
+ }
$this->build_account_id();
$this->initial_account_id = $this->account_id;
}else{
$this->parent->attrs['objectClass'] =
array_remove_entries_ics($this->shareObjectClasses, $this->parent->attrs['objectClass']);
+ $this->parent->attrs['gosaSharedFolderTarget'] =array();
}
foreach($this->attributes as $source => $dest){
$this->attrs[$dest] = array();
$domain = $mailpart = "";
$mail = $this->parent->mail;
if(preg_match("/\@/",$mail)){
- list($mailpart,$domain) = split("\@",$mail);
+ list($mailpart,$domain) = explode("@",$mail);
}
/* Create account_id
$domain = $mailpart = "";
$mail = $this->parent->mail;
if(preg_match("/\@/",$mail)){
- list($mailpart,$domain) = split("\@",$mail);
+ list($mailpart,$domain) = explode("@",$mail);
}
/* Create account_id
}
if(preg_match("/\@/",$acc_id)){
- list($mail,$domain) = split("\@",$acc_id);
+ list($mail,$domain) = explode("@",$acc_id);
$str = trim($mail . $folder . "@" . $domain);
}else{
$str = trim($acc_id . $folder);