From 45b179ede36723a38fe43bdbd474c210200e917d Mon Sep 17 00:00:00 2001 From: Jeena Date: Sun, 4 Jan 2026 15:44:54 +0900 Subject: [PATCH] Clean up unused code and config Remove PROCESSED_FILE references and update .env.example with placeholder Uptime URLs for privacy. Changes: - Remove unused processed_file variable and loading in main.py - Update .env.example to use generic Uptime URLs - Remove processed_uids.txt from .gitignore --- .env.example | 5 ++--- .gitignore | 1 - main.py | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index d0eb949..0d59d47 100644 --- a/.env.example +++ b/.env.example @@ -7,7 +7,6 @@ DEST_PORT=993 DEST_USER=your@mxroute.com DEST_PASS=password FOLDER=INBOX -PROCESSED_FILE=processed_uids.txt DRY_RUN=false -UPTIME_SUCCESS_URL=https://uptime.jeena.net/api/push/aUC76G2mpY?status=up&msg=OK&ping= -UPTIME_FAIL_URL=https://uptime.jeena.net/api/push/aUC76G2mpY?status=down&msg=Failed \ No newline at end of file +UPTIME_SUCCESS_URL=https://your-uptime-instance.com/api/push/your-token?status=up&msg=OK&ping= +UPTIME_FAIL_URL=https://your-uptime-instance.com/api/push/your-token?status=down&msg=Failed \ No newline at end of file diff --git a/.gitignore b/.gitignore index 7377db7..2dfd7c2 100644 --- a/.gitignore +++ b/.gitignore @@ -136,6 +136,5 @@ dmypy.json .ruff_cache/ # Local data -processed_uids.txt processed_message_ids.txt last_run.txt \ No newline at end of file diff --git a/main.py b/main.py index 3eb9b97..4585634 100644 --- a/main.py +++ b/main.py @@ -34,7 +34,6 @@ dest_pass = os.getenv("DEST_PASS") if not dest_pass: raise ValueError("DEST_PASS not set") folder = os.getenv("FOLDER", "INBOX") -processed_file = os.getenv("PROCESSED_FILE", "processed_uids.txt") processed_msg_file = "processed_message_ids.txt" last_run_file = "last_run.txt" dry_run = os.getenv("DRY_RUN", "false").lower() == "true"