ClamAV in Evolution integrieren

Aus Fedorawiki.de

Wechseln zu: Navigation, Suche
Dieser Artikel ist Teil der Tipps & Tricks Sammlung

Um in Evolution jede eingehende Mail mit ClamAV zu scannen, muss man wie folgt vorgehen: Zuerst muss man das folgende Script in einem beliebigen Ordner speicher und Ausführbar (chmod +x) machen:

<bash>

   #!/bin/bash
   # Fred Blaise
   # This program is free software; you can redistribute it and/or modify
   # it under the terms of the GNU General Public License as published by
   # the Free Software Foundation; either version 2 of the License, or
   # (at your option) any later version.
   # This program is distributed in the hope that it will be useful,
   # but WITHOUT ANY WARRANTY; without even the implied warranty of
   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   # GNU General Public License for more details.
   # You should have received a copy of the GNU General Public License
   # along with this program; if not, write to the Free Software
   # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
   # MA 02111-1307 USA
   FILE=/tmp/$$_outclam.tmp
   clamscan - 1>$FILE
   if [ $? -eq 1 ]; then
   STRING=$(grep 'FOUND' $FILE |cut -d: -f2)
   zenity –-warning –-text="$STRING" &
   rm -f $FILE
   exit 1
   fi
   rm -f $FILE
   exit 0

</bash>

Anschließend einen muss in Evolution ein Nachrichten Filter nach dem folgenden Muster angelegt werden. Wichtig: Der Filter sollte unbedingt an der ersten Stelle der Filter Liste stehen.

Filter

Persönliche Werkzeuge