0); @$imenabled = (icewarp_webmailfunctioncall("getuserproperty", $email, "INSTANTMESSAGING") > 0); } function integrateauthenticateuser($user, $password, $method = "", $challenge = "") { global $SERVER_NAME, $otherconfig; $delim = "|"; @$result = icewarp_webmailfunctioncall("authenticateuser", $user, $password, $SERVER_NAME, $otherconfig["EMAILLOGIN"] . $delim . $method . $delim . $challenge); return $result; } function integrateadduser($email, $name, $password) { @$result = (icewarp_webmailfunctioncall("adduser", $email, $password, $name) > 0); return $result; } function integratechangeuser($email, $oldpassword, $password, $name) { @$result = (icewarp_webmailfunctioncall("changeuser", $email, $oldpassword, $password, $name) > 0); return $result; } function integratedeleteuser($email) { @$result = (icewarp_webmailfunctioncall("deleteuser", $email) > 0); return $result; } function integratepowerpack() { @$result = (icewarp_webmailfunctioncall("checkpowerpack") > 0); return $result; } function integrateantispam($email) { @$ret['CHALLENGERESPONSE'] = icewarp_webmailfunctioncall("getuserproperty", $email, "CHALLENGERESPONSE"); @$ret['INSTANTANTISPAM'] = icewarp_webmailfunctioncall("getuserproperty", $email, "INSTANTANTISPAM"); @$ret['SPAMFOLDER'] = icewarp_webmailfunctioncall("getuserproperty", $email, "SPAMFOLDER"); @$ret['IASCUSTOM'] = icewarp_webmailfunctioncall("getuserproperty", $email, "IASCUSTOM"); return $ret; } function integrateantispamsave($email,$xspamfolder,$xinstantantispam,$xchallengeresponse,$xspamlevel) { @icewarp_webmailfunctioncall("setuserproperty", $email, "CHALLENGERESPONSE",$xchallengeresponse); @icewarp_webmailfunctioncall("setuserproperty", $email, "INSTANTANTISPAM",$xinstantantispam); @icewarp_webmailfunctioncall("setuserproperty", $email, "SPAMFOLDER",$xspamfolder); @icewarp_webmailfunctioncall("setuserproperty", $email, "IASCUSTOM",$xspamlevel); return true; } function integrategetautoresponder($email, &$text, &$enabled, &$betweendates, &$iftome) { @$enabled = icewarp_webmailfunctioncall("getuserproperty", $email, "RESPONDER"); @$text = icewarp_webmailfunctioncall("getuserproperty", $email, "RESPONDERTEXT"); @$betweendates = icewarp_webmailfunctioncall("getuserproperty", $email, "RESPONDBETWEEN"); @$iftome = icewarp_webmailfunctioncall("getuserproperty", $email, "RESPONDONLYTOME"); return true; } function integratesetautoresponder($email, $text, $enabled, $betweendates, $iftome) { @$result = (icewarp_webmailfunctioncall("setuserproperty", $email, "RESPONDER", strval($enabled)) > 0); @$result = (icewarp_webmailfunctioncall("setuserproperty", $email, "RESPONDERTEXT", $text) > 0); @$result = (icewarp_webmailfunctioncall("setuserproperty", $email, "RESPONDONLYTOME", $iftome) > 0); @$result = (icewarp_webmailfunctioncall("setuserproperty", $email, "RESPONDBETWEEN", $betweendates) > 0); return $result; } function integrategetforwarder($email) { @$result = icewarp_webmailfunctioncall("getuserproperty", $email, "FORWARDTO"); return $result; } function integratesetforwarder($email, $forward) { @$result = icewarp_webmailfunctioncall("setuserproperty", $email, "FORWARDTO", $forward); return $result; } function integrategetantispam($email, &$enabled) { @$enabled = icewarp_webmailfunctioncall("getuserproperty", $email, "ANTISPAM"); return true; } function integratesetantispam($email, $enabled) { @$result = icewarp_webmailfunctioncall("setuserproperty", $email, "ANTISPAM", strval($enabled)); return $result; } function indexnow($email) { @$result = (icewarp_webmailfunctioncall("indexnow", $email) > 0); return $result; } function challengeresponseadd($group, $email, $state) { @$result = (icewarp_webmailfunctioncall("challengeresponseadd", $group, $email, $state) > 0); return $result; } function challengeresponselist($group, $flags="") { @$result = icewarp_webmailfunctioncall("challengeresponselist", $group, $flags); return $result; } function challengeresponseauthorize($folder) { @$result = (icewarp_webmailfunctioncall("challengeresponseauthorize", $folder) > 0); return $result; } function challengeresponsedelete($group, $email,$folder="") { @$result = (icewarp_webmailfunctioncall("challengeresponsedelete", $group, $email, $folder) > 0); return $result; } function challengeresponsepath($folder) { @$result = icewarp_webmailfunctioncall("challengeresponsepath", $folder); return $result; } function challengeresponseuserstate($email) { @$result = (icewarp_webmailfunctioncall("getuserproperty", $email, "CHALLENGERESPONSE") > 0); return $result; } function integratetest() { return true; } function spellcheck($type, $param, $custom) { return @icewarp_webmailfunctioncall("spellcheck", $type, $param, $custom); } ?>