freeside *SUSPENDED* -> CP set_mailbox_status OTHER/OTHER_BOUNCE
authorivan <ivan>
Fri, 22 Feb 2002 08:58:11 +0000 (08:58 +0000)
committerivan <ivan>
Fri, 22 Feb 2002 08:58:11 +0000 (08:58 +0000)
FS/FS/svc_acct.pm

index 2a0c904..314a752 100644 (file)
@@ -840,12 +840,25 @@ sub cp_change {
                         #Debug    => 1,
                       ) or die "$@\n";
 
+  if ( $password =~ /^\*SUSPENDED\* (.*)$/ ) {
+    $password = $1;
+    $app->set_mailbox_status(
+                              Other => 'T',
+                              Other_Bounce => 'T',
+                            );
+  } else {
+    $app->set_mailbox_status(
+                              Other => 'F',
+                              Other_Bounce => 'F',
+                            );
+  }
+  die $app->message."\n" unless $app->ok;
+
   $app->change_mailbox(
                         Domain    => $mydomain,
                         Mailbox   => $username,
                         Password  => $password,
                       );
-
   die $app->message."\n" unless $app->ok;
 
 }