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: ?>