[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 86090] kmail virus scan not working
From:       Andreas Gungl <a.gungl () gmx ! de>
Date:       2004-07-27 19:40:06
Message-ID: 20040727194006.19547.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=86090      




------- Additional Comments From a.gungl gmx de  2004-07-27 21:40 -------
On Dienstag, 27. Juli 2004 21:09, Udo wrote:
> Ok, i have modified the script as follows:
>
<snip>
>
> And it works perfectly with clamav 0.72.
>
> With f-prot Program version: 4.4.2
> Engine version: 3.14.11
> I get X-Virus-Flag: no.
> This ok with respect to f-prot being called now,
> but strange with respect to the result which should be yes !!

Hm, I guess you expect a virus to be found. Did you test with th eEICAR test 
virus? I mean, are you sure that f-prot will really detect that beast?

> Hmm, as I am working with clamav it is ok for me.
> But as we should consider other people tell me what I shall
> test in order to help you for f-prot.
>
> btw. I am using Suse 8.1 with kernel 2.4.26 and KDE 3.2.3.

Please try to replace the kmail_fprot.sh code part below the license with 
the following lines and let me know the result.

------------------------------------------
export TEMPFILE=`mktemp`
cat > $TEMPFILE
f-prot -archive 3 $TEMPFILE
if [ $RC -eq 0 ] ; then
    echo "X-Virus-Flag: no"
else
    case $RC in
        1 ) DESC="no - Unrecoverable error" ;;
        2 ) DESC="no - Selftest failed" ;;
        3 ) DESC="yes - Virus-infected object found" ;;
        4 ) DESC="no - Reserved" ;;
        5 ) DESC="no - Abnormal termination" ;;
        6 ) DESC="no - Virus was removed" ;;
        7 ) DESC="no - Error, out of memory" ;;
        8 ) DESC="yes - Something suspicious found" ;;
    esac
    echo "X-Virus-Flag: $DESC"
fi

cat $TEMPFILE
rm $TEMPFILE
------------------------------------------

TIA,
Andreas
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic