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 Hendrik Muhs <Hendrik.Muhs@web.de> 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 antivir --scan-in-archive --scan-in-mbox $TEMPFILE | grep -q ALERT; then 0015 echo "X-Virus-Flag: yes" 0016 else 0017 echo "X-Virus-Flag: no" 0018 fi 0019 cat $TEMPFILE 0020 rm $TEMPFILE