Add native Windows compatibility layer
This commit is contained in:
@@ -197,7 +197,7 @@ def _load_config(account: str | None = None) -> dict:
|
||||
try:
|
||||
settings_path = Path(__file__).resolve().parent.parent / "data" / "settings.json"
|
||||
if settings_path.exists():
|
||||
settings = json.loads(settings_path.read_text())
|
||||
settings = json.loads(settings_path.read_text(encoding="utf-8"))
|
||||
for key in (
|
||||
"imap_host", "imap_port", "imap_user", "imap_password",
|
||||
"smtp_host", "smtp_port", "smtp_user", "smtp_password",
|
||||
|
||||
Reference in New Issue
Block a user