diff --git a/ChangeLog b/ChangeLog index d9131ec..cb93f00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/bin/poster.pl b/bin/poster.pl index 682e35f..e666711 100755 --- a/bin/poster.pl +++ b/bin/poster.pl @@ -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; } 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"