File indexing completed on 2025-01-05 04:49:33

0001 #!/bin/sh
0002 #
0003 #    This file is part of KMail.
0004 #    SPDX-FileCopyrightText: 2004 Fred Emmott <fred87@users.sf.net>
0005 #
0006 #    SPDX-License-Identifier: GPL-2.0-only
0007 #
0008 TEMPFILE=`mktemp` 
0009 if [ $? != 0 ] ; then 
0010     TEMPFILE=`mktemp /tmp/kmail.XXXXXX` 
0011 fi 
0012 export TEMPFILE
0013 cat > $TEMPFILE
0014 if sweep -ss -mime $TEMPFILE | grep -q found; then
0015 echo "X-Virus-Flag: yes"
0016 else
0017 echo "X-Virus-Flag: no"
0018 fi
0019 cat $TEMPFILE
0020 rm $TEMPFILE