As of SpamAssassin 4.0.0, spamc(1) corrupts messages with NUL in
the body when the `--headers' switch is used. This increases
transport costs, but most spamc/spamd setups are via local
sockets, so it's unlikely to be significant.
Link: https://bugs.debian.org/1057749
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
sub new {
my ($class) = @_;
bless {
- checkcmd => [qw(spamc -E --headers)],
+ checkcmd => [qw(spamc -E)],
hamcmd => [qw(spamc -L ham)],
spamcmd => [qw(spamc -L spam)],
}, $class;
rm_list="$rm_list $PREMSG"
set +e
mv -f $TMPMSG $PREMSG
- $spamc -E --headers <$PREMSG >$TMPMSG
+ $spamc -E <$PREMSG >$TMPMSG
else
- $spamc -E --headers <$CDMSG >$TMPMSG
+ $spamc -E <$CDMSG >$TMPMSG
fi
err=$?