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