From 9483730df76e2587970e734c891c26dd1ab397e5 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 7 Feb 2026 21:56:45 +0100 Subject: [PATCH] Add cronjob to remove old backup messages. Signed-off-by: Thomas Hochstein --- ChangeLog | 1 + etc/skel/etc/samples/crontab | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index cb93f00..b722645 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ huhu 0.11.0 (unreleased) * Drop more headers. * Only connect to newsserver if there are approved posts. * Fix headers with continuation immediately at start. + * Add cronjob to remove old backup messages. huhu 0.10 (unknown) * huhu reports version 0.09 (from MOD/Displaylib.pm), but has code diff --git a/etc/skel/etc/samples/crontab b/etc/skel/etc/samples/crontab index 4b839c6..0c5dd12 100644 --- a/etc/skel/etc/samples/crontab +++ b/etc/skel/etc/samples/crontab @@ -22,6 +22,9 @@ BINDIR="@HUHU_DIR@/bin" # Remove old records from database 5 3 * * * "$BINDIR/removeold.pl" "$CONFIG" +# Remove old messages (older than 14 days) from backup dir +15 3 * * * find @USER_HOME@/backup -type f -mtime +14 -exec rm {} \; + # Reads database, sends reply to authors of pending messages. # 10 * * * * "$BINDIR/autoreply.pl" "$CONFIG"