diff --git a/.gitattributes b/.gitattributes
index 70848878..1524d55c 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -258,6 +258,7 @@ bureau/admin/mail_localbox_edit.inc.php -text
bureau/admin/mail_properties.php -text
bureau/admin/mail_redirection_doedit.php -text
bureau/admin/mail_redirection_edit.inc.php -text
+bureau/admin/mail_undelete.php -text
bureau/admin/main.php -text
bureau/admin/mem_admin.php -text
bureau/admin/mem_chgmail.php -text
diff --git a/bureau/admin/mail_del.php b/bureau/admin/mail_del.php
index af0accf7..6f9ceb35 100644
--- a/bureau/admin/mail_del.php
+++ b/bureau/admin/mail_del.php
@@ -27,7 +27,7 @@ require_once("../class/config.php");
$fields = array (
"d" => array ("request", "array", ""),
- "domain" => array ("request", "string", ""),
+ "domain_id" => array ("request", "integer", ""),
"confirm" => array("request", "string", "n"),
);
getFields($fields);
@@ -41,16 +41,19 @@ reset($d);
include_once ("head.php");
if ($confirm=="y") {
-
-while (list($key,$val)=each($d)) {
- if (!$mail->del_mail($val)) {
- $error.=sprintf(_("The email address %s does not exist!")."
",$val);
- } else {
- $error.=sprintf(_("The email address %s has been deleted!")."
",$val);
- }
-}
-include("mail_list.php");
- exit();
+ $error="";
+ while (list($key,$val)=each($d)) {
+ $mail->delete($val);
+ $error.=$err->errstr()."
";
+ /*
+ $error.=$err->errstr()."
"; //sprintf(_("The email address %s does not exist!")."
",$val);
+ } else {
+ $error.=sprintf(_("The email address %s has been deleted!")."
",$val);
+ }
+ */
+ }
+ include("mail_list.php");
+ exit();
}
?>
@@ -63,13 +66,14 @@ include("mail_list.php");