correctly disable/enable accounts @ CP
authorivan <ivan>
Fri, 22 Feb 2002 09:01:08 +0000 (09:01 +0000)
committerivan <ivan>
Fri, 22 Feb 2002 09:01:08 +0000 (09:01 +0000)
FS/FS/svc_acct.pm

index 314a752..b90cbe8 100644 (file)
@@ -843,12 +843,16 @@ sub cp_change {
   if ( $password =~ /^\*SUSPENDED\* (.*)$/ ) {
     $password = $1;
     $app->set_mailbox_status(
   if ( $password =~ /^\*SUSPENDED\* (.*)$/ ) {
     $password = $1;
     $app->set_mailbox_status(
-                              Other => 'T',
+                              Domain       => $mydomain,
+                              Mailbox      => $username,
+                              Other        => 'T',
                               Other_Bounce => 'T',
                             );
   } else {
     $app->set_mailbox_status(
                               Other_Bounce => 'T',
                             );
   } else {
     $app->set_mailbox_status(
-                              Other => 'F',
+                              Domain       => $mydomain,
+                              Mailbox      => $username,
+                              Other        => 'F',
                               Other_Bounce => 'F',
                             );
   }
                               Other_Bounce => 'F',
                             );
   }