Bug 94548 - [PATCH] Support uvscan (McAfee Virusscan) in antivirus wizard
Summary: [PATCH] Support uvscan (McAfee Virusscan) in antivirus wizard
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: filtering (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-06 17:28 UTC by Christopher Crawford
Modified: 2012-08-19 00:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Crawford 2004-12-06 17:28:56 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3 
OS:                Linux

McAfee Virusscan is not supported by the antivirus wizard.  I have written kmail_uvscan, but it will be much easier to use if the wizard supports it.  For testing sake, uvscan eval can be downloaded for free from nai.com.

The new script attached: 

TEMPFILE=`mktemp`
if [ $? ] ; then
    TEMPFILE=`mktemp /tmp/kmail.XXXXXX`
fi
export TEMPFILE
cat > $TEMPFILE
uvscan --secure --unzip --analyze --manalyze --panalyze $TEMPFILE > /dev/null
RC=$?
if [ $RC -eq 0 ] ; then
    echo "X-Virus-Flag: no"
else
    case $RC in
        2 ) DESC="no - DAT integrity check failed" ;;
        6 ) DESC="no - Unrecoverable error" ;;
        8 ) DESC="no - DAT file could not be found" ;;
        12) DESC="yes - Infected object found, clean failed" ;;
        13) DESC="yes - Virus-infected object found" ;;
        15) DESC="no - Selftest failed" ;;
        19) DESC="no - Virus was removed" ;;
       102) DESC="no - Unknown error" ;;
    esac
    echo "X-Virus-Flag: $DESC"
fi

cat $TEMPFILE
rm $TEMPFILE
Comment 1 Laurent Montel 2011-08-21 11:08:50 UTC
Is it still valid ?
I never used it
Comment 2 Myriam Schweingruber 2012-08-18 08:48:23 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 3 Luigi Toscano 2012-08-19 00:46:33 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.