current['MAIL_ATTRIB']) && !empty($config->current['MAIL_ATTRIB'])){ $new_uattrib= strtolower($config->current['MAIL_ATTRIB']); if(in_array($new_uattrib,array("mail","uid"))){ $this->uattrib = $new_uattrib; }else{ trigger_error(sprintf("Unsupported MAIL_ATTRIB in gosa configuration specified, use 'mail' or 'uid', instead of '%s'.",$new_uattrib)); } } $this->config= $config->data['SERVERS']['IMAP']; } function fixAttributesOnLoad(&$mailObject) { /* Remove possible local alias from forwarders */ $newForwarder= array(); foreach ($mailObject->gosaMailForwardingAddress as $addr){ if (!preg_match('/^\\\\/', $addr)){ $newForwarder[]= $addr; } } $mailObject->gosaMailForwardingAddress= $newForwarder; } function fixAttributesOnStore(&$mailObject) { /* Add local user if checked */ if (preg_match("/L/", $mailObject->gosaMailDeliveryMode)) { $mailObject->gosaMailForwardingAddress[]= "\\".$mailObject->uid; } } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>