mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-26 14:01:30 +00:00
refactor(services): remove special storage counting from mail
This commit is contained in:
parent
208e256c0f
commit
f5de4974e7
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue