guard expire/fsreport file iteration against vanishing, improve reporting

also activates actual deletion (after quite some dry test runs on nine)
This commit is contained in:
holger krekel
2025-10-22 19:03:54 +02:00
parent 0155f32df6
commit fa9aa5b015
3 changed files with 76 additions and 19 deletions

View File

@@ -5,5 +5,5 @@ After=network.target
[Service]
Type=oneshot
User=vmail
ExecStart=/usr/local/lib/chatmaild/venv/bin/chatmail-expire /usr/local/lib/chatmaild/chatmail.ini -v
ExecStart=/usr/local/lib/chatmaild/venv/bin/chatmail-expire /usr/local/lib/chatmaild/chatmail.ini -v --remove