refactor(services): remove special storage counting from mail

This commit is contained in:
Houkime 2023-04-17 14:14:48 +00:00 committed by Inex Code
parent 208e256c0f
commit f5de4974e7

View file

@ -6,7 +6,6 @@ import typing
from selfprivacy_api.jobs import Job, JobStatus, Jobs
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 (
get_service_status,
get_service_status_from_several_units,
@ -96,10 +95,6 @@ class MailServer(Service):
def get_logs():
return ""
@staticmethod
def get_storage_usage() -> int:
return get_storage_usage("/var/vmail")
@staticmethod
def get_folders() -> typing.List[str]:
return ["/var/vmail", "/var/sieve"]