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
This commit is contained in:
Jeena 2026-01-04 15:44:54 +09:00
parent 686c4877d3
commit 45b179ede3
3 changed files with 2 additions and 5 deletions

View file

@ -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
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

1
.gitignore vendored
View file

@ -136,6 +136,5 @@ dmypy.json
.ruff_cache/
# Local data
processed_uids.txt
processed_message_ids.txt
last_run.txt

View file

@ -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"