wip(Resiliation script)

This commit is contained in:
2026-01-11 18:13:18 +01:00
parent fb6c62f19c
commit 80d96b7004
7 changed files with 148 additions and 4 deletions

View File

@@ -87,4 +87,20 @@ class ISPConfigMailService extends ISPConfigService
'spam_filter' => $user['move_junk'] === 'y',
];
}
public function updateMailUser(string $email, array $changes): bool
{
$allUsers = $this->getAllMailUsers();
$user = collect($allUsers)->firstWhere('email', $email);
if (!$user) {
return false;
}
return $this->call('mail_user_update', [
'primary_id' => $user['mailuser_id'],
'params' => $changes,
]);
}
}