defaultDomain = $defaultDomain ? $defaultDomain : $GLOBALS['egw_info']['server']['mail_suffix']; } // add a account function addAccount($_hookValues) { return true; } // delete a account function deleteAccount($_hookValues) { return true; } function getAccountEmailAddress($_accountName) { $accountID = $GLOBALS['egw']->accounts->name2id($_accountName); $emailAddress = $GLOBALS['egw']->accounts->id2name($accountID,'account_email'); if(empty($emailAddress)) $emailAddress = $_accountName.'@'.$this->defaultDomain; $realName = trim($GLOBALS['egw_info']['user']['account_firstname'] . (!empty($GLOBALS['egw_info']['user']['account_firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['account_lastname']); return array( array( 'name' => $realName, 'address' => $emailAddress, 'type' => 'default' ) ); } function getUserData($_uidnumber) { $userData = array(); return $userData; } function saveSMTPForwarding($_accountID, $_forwardingAddress, $_keepLocalCopy) { return true; } function setUserData($_uidnumber, $_mailAlternateAddress, $_mailForwardingAddress, $_deliveryMode) { return true; } // update a account function updateAccount($_hookValues) { return true; } } ?>