File indexing completed on 2024-10-27 04:50:53

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 TEMPFILE=`mktemp` 
0008 if [ $? != 0 ] ; then 
0009     TEMPFILE=`mktemp /tmp/kmail.XXXXXX` 
0010 fi 
0011 export TEMPFILE
0012 cat > $TEMPFILE
0013 if sweep -ss -mime $TEMPFILE | grep -q found; then
0014 echo "X-Virus-Flag: yes"
0015 else
0016 echo "X-Virus-Flag: no"
0017 fi
0018 cat $TEMPFILE
0019 rm $TEMPFILE