Package: spamassassin
Version: 3.4.1-4
Followup-For: Bug #687411

Hello Martin,

You wrote on Wed, 12 Sep 2012 15:36:30 +0200:
> This has the disadvantage that cron is blocked while the script is
> sleeping; it's also annoying when running the script manually.
Yes and no. The second part is no longer the case (I don't know what was
earlier) but now if running the script interactively, this code block
will be skipped:

"
# Sleep for up to 3600 seconds if not running interactively
if [ ! -t 0 ]; then
    RANGE=3600
    number=`od -vAn -N2 -tu4 < /dev/urandom`
    number=`expr $number "%" $RANGE`
    sleep $number
fi
"

So this no longer applies. However, the first suggestion of sending
the sleep into a detached subshell I completely agree with, I think it's
great:

> (
>   # Sleep for up to 3600 seconds
>   RANGE=3600
>   number=`od -vAn -N2 -tu4 < /dev/urandom`
>   number=`expr $number "%" $RANGE`
>   sleep $number
> 
>   # Update
>   umask 022
>   sa-update
> ) &

> these problems should be resolved.

Yes, blocking the daily cron with a sleep can be a nuisance from system
adminisration point of view. I will propose this wishlist be forwarded
on and approved by the maintainer and the change be made in next upcoming
package version.


Regards,
Miklos


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 4.5.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages spamassassin depends on:
ii  adduser                                  3.114
ii  curl                                     7.47.0-1
ii  init-system-helpers                      1.34
ii  libhtml-parser-perl                      3.72-1
ii  libhttp-date-perl                        6.02-1
ii  libnet-dns-perl                          1.05-2
ii  libnetaddr-ip-perl                       4.079+dfsg-1
ii  libsocket6-perl                          0.27-1
ii  libsys-hostname-long-perl                1.5-1
ii  libwww-perl                              6.15-1
ii  perl                                     5.22.2-1
ii  perl-modules-5.22 [libarchive-tar-perl]  5.22.2-1
ii  w3m                                      0.5.3-28

Versions of packages spamassassin recommends:
ii  gnupg                             1.4.20-6
ii  libio-socket-inet6-perl           2.72-2
ii  libmail-spf-perl                  2.9.0-4
ii  libperl5.22 [libsys-syslog-perl]  5.22.2-1
pn  sa-compile                        <none>
ii  spamc                             3.4.1-4

Versions of packages spamassassin suggests:
pn  libdbi-perl                          <none>
pn  libencode-detect-perl                <none>
ii  libio-socket-ssl-perl                2.027-1
pn  libmail-dkim-perl                    <none>
ii  libperl5.22 [libcompress-zlib-perl]  5.22.2-1
pn  pyzor                                <none>
pn  razor                                <none>

-- Configuration Files:
/etc/spamassassin/local.cf changed [not included]

-- no debconf information
-- 
Miklos Quartus
WWW: http://www.miklos.info
GPG: 3C4B 1364 A379 7366 7FED  260A 2208 F2CE 3FCE A0D3

Attachment: signature.asc
Description: PGP signature

Reply via email to