You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
339 B

#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
t_Log "Running $0 - check that spamassassin can detect spam."
if [ "$centos_ver" -lt 8 ] ; then
VERSION=-`t_GetPkgVer spamassassin`
fi
spamassassin --lint &&\
spamassassin < /usr/share/doc/spamassassin${VERSION}/sample-spam.txt | grep -q 'X-Spam-Flag: YES'
t_CheckExitStatus $?