10.1.7. KMail
KMail is a fully-featured email client that fits nicely into the K
Desktop Environment, KDE. It has features such as support for
IMAP, POP3, multiple accounts, powerful filters, PGP/GnuPG
privacy, inline attachments, and much more.
—KMail website
KMail integration can be done using the wizard from Tools → Anti-virus Wizard...
menu. This will autodetect BitDefender and will automatically configure the filters to
pipe any message through a script that will add a header to the message,
X-Virus-Flag with values Yes or No, depending on the email is infected or not.
Figure 10.5. KMail filter configuration
If you do not like to use the wizard,
you can add manually the filter rule.
Start from Settings → Configure
filters.... Add a new filter and name
it BitDefender Anti-Virus Check. In
the Filter Criteria panel add a rule
to select which messages to scan,
for example a rule that will scan all
messages. In the Filter Actions
panel select Pipe Through and fill
in the textbox
kmail_bitdefender.sh. Then
check the boxes Apply to
incoming message andApply on
manual filtering. Save the new rule by pressing the OK button.
Copy the following script, name it kmail_bitdefender.sh and save it somewhere in
your path.
#!/bin/sh
# BitDefender KMail integration script
# Copyright (C) 1996-2006 SOFTWIN SRL. All rights reserved.
# Place this script in your PATH and name it
# kmail_bitdefender.sh, such as: ~/bin/kmail_bitdefender.sh
# Set some parameters
BDSCAN=bdscan
TMPFILE=/tmp/bdkmail_$$
67
10
Using
BitDefender
BitDefender integration