array("request","integer",null), "target_type" => array("post", "string", null), "target_mail" => array("post", "string", null), "target_domain" => array("post", "string", null), ); getFields($fields); if (is_null($domain_id)) { $msg->raise("ERROR", "mail", _("Problem with the domain")); include_once("mail_list.php"); exit(); } if (!is_null($target_type)) { switch ($target_type) { case "none": if ($mail->catchall_del($domain_id)) $msg->raise("INFO", "mail", _("Catchall successfully deleted")); require_once("mail_list.php"); exit(); break; case "domain": if ($mail->catchall_set($domain_id, $target_domain)) { $msg->raise("INFO", "mail", _("Catchall successfully updated")); require_once("mail_list.php"); exit(); } break; case "mail": if ($mail->catchall_set($domain_id, $target_mail)) { $msg->raise("INFO", "mail", _("Catchall successfully updated")); require_once("mail_list.php"); exit(); } break; default: $error=_("Unknown target type"); } } $catch=$mail->catchall_getinfos($domain_id); ?>