Compare commits

..

2 commits

Author SHA1 Message Date
d14c980816 Add cronjob to remove old backup messages.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2026-02-07 21:56:45 +01:00
077431fa06 Fix STARTTLS in poster.pl.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2026-02-07 21:43:02 +01:00
3 changed files with 6 additions and 2 deletions

View file

@ -3,6 +3,7 @@ huhu 0.11.0 (unreleased)
* Update to current Debian version.
* Add shell to new huhu mod users.
* Add wrapper script for read-mail.pl
* Add STARTTLS to poster.pl
* Drop more headers.
* Only connect to newsserver if there are approved posts.
* Fix headers with continuation immediately at start.

View file

@ -84,11 +84,11 @@ sub connect_nntp($)
my $cfg_nntp_pass = $r_config->{'nntp_pass'} ||
die 'No "nntp_pass" in configuration file';
$nntp->starttls if $nntp->can_ssl();
# authinfo does not return a value
$nntp->authinfo($cfg_nntp_user, $cfg_nntp_pass);
$nntp->starttls if $nntp->can_ssl();
return $nntp;
}

View file

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