diff --git a/autoreply_editor/main.py b/autoreply_editor/main.py index baeec3c..0cf6abb 100644 --- a/autoreply_editor/main.py +++ b/autoreply_editor/main.py @@ -103,6 +103,9 @@ def get_filterfile(user): with open(filepath, "w", encoding="utf-8") as filterfile: filterfile.write(filterconfig) + # Change permissions to 0600 + os.chmod(filepath, 0o600) + return filepath