refactor(services): remove special storage counting from mail

This commit is contained in:
Houkime 2023-04-17 14:14:48 +00:00
parent 312328af95
commit 042a2e4cf2

View file

@ -6,7 +6,6 @@ import typing
from selfprivacy_api.jobs import Job, JobStatus, Jobs from selfprivacy_api.jobs import Job, JobStatus, Jobs
from selfprivacy_api.services.generic_service_mover import FolderMoveNames, move_service from selfprivacy_api.services.generic_service_mover import FolderMoveNames, move_service
from selfprivacy_api.services.generic_size_counter import get_storage_usage
from selfprivacy_api.services.generic_status_getter import ( from selfprivacy_api.services.generic_status_getter import (
get_service_status, get_service_status,
get_service_status_from_several_units, get_service_status_from_several_units,
@ -96,10 +95,6 @@ class MailServer(Service):
def get_logs(): def get_logs():
return "" return ""
@staticmethod
def get_storage_usage() -> int:
return get_storage_usage("/var/vmail")
@staticmethod @staticmethod
def get_folders() -> typing.List[str]: def get_folders() -> typing.List[str]:
return ["/var/vmail", "/var/sieve"] return ["/var/vmail", "/var/sieve"]