Hi,

> under c:\imail\spool\virus
> I have a lot of .smd-files
> sitting there. Most likely
> files containing viruses.

Most likely e-mails with a vulnerability.

> How can I get rid of them programatically ?
> I have turned ON the DELETEVIRUSES-option
> in the virus.cfg file.

Which would indicate e-mails with a positive identified virus will be
deleted. E-mails with vulnerabilities however are never automatically
deleted as they a mostly simply malformed e-mails. As over 95% as mostly
spam you can probably delete them without any problems but keeping track of
what is placed there might be advisable.

> We have IMail 6.06 on Win2000

If you want to delete them automatically..... I use a batchfile that keeps a
7 days history and deletes after that. Sorry for the Dutch comments. I used
to comment in english, even for myself, but some of my colleages prefer to
read it in Dutch. ;-) So far is simply a bunch of copied lines in stead of a
loop. If I were to extend the number of days even further I might change it
into a loop. DTLog is a program I wrote that puts the line in a logfile
prepended with the date and time.

rem @Echo Off
rem BB 10-mei-2004
rem E-mails met virussen niet automatisch verwijderen maar een X aantal
rem dagen bewaren. We doen dit door een aantal directories te gebruiken
rem en deze steeds verder op te schuiven door de naam te veranderen. De
rem oudste directory gooien we weg.
SET LOGFILE=C:\Beheer\Logs\Virrot.log
SET DTLOG=C:\Beheer\DTLog.exe

%DTLOG% %LOGFILE% Rotating virus directories

C:
cd \IMail\Spool\Virus

rem BB 6-dec-2004
rem We bewaren nu 7 dagen i.p.v. 5 dagen.

If Exist VirusDay7 RD /S /Q VirusDay7
IF ErrorLevel 1 Goto ErrDel7
Set RotDay=6
If Exist VirusDay6 Ren VirusDay6 VirusDay7
IF ErrorLevel 1 Goto ErrRot
Set RotDay=5
If Exist VirusDay5 Ren VirusDay5 VirusDay6
IF ErrorLevel 1 Goto ErrRot
Set RotDay=4
If Exist VirusDay4 Ren VirusDay4 VirusDay5
IF ErrorLevel 1 Goto ErrRot
Set RotDay=3
If Exist VirusDay3 Ren VirusDay3 VirusDay4
IF ErrorLevel 1 Goto ErrRot
Set RotDay=2
If Exist VirusDay2 Ren VirusDay2 VirusDay3
IF ErrorLevel 1 Goto ErrRot
Set RotDay=1
If Exist VirusDay1 Ren VirusDay1 VirusDay2
IF ErrorLevel 1 Goto ErrRot
MD VirusDay1
IF Exist *.SMD Move *.SMD VirusDay1
IF ErrorLevel 1 Goto ErrMov1s
IF Exist *.GSC Move *.GSC VirusDay1
IF ErrorLevel 1 Goto ErrMov1g
%DTLOG% %LOGFILE% Rotating VirusDay directories OK
Dir VirusDay1 > Temp1
Find "File(s)" < Temp1 >> %LOGFILE%
Del Temp1
Goto Einde


:ErrDel7
%DTLOG% %LOGFILE% Error deleting VirusDay7 directory and/or files
Goto einde

:ErrRot
%DTLOG% %LOGFILE% Error Renaming VirusDay%RotDay% directory
Goto einde

:ErrMov1s
%DTLOG% %LOGFILE% Error moving SMD files to VirusDay1 directory
Dir . /a >> %LogFile%
Goto Einde

:ErrMov1g
%DTLOG% %LOGFILE% Error moving GSC files to VirusDay1 directory
Dir . /a >> %LogFile%
Goto Einde

:Einde
SET LOGFILE=
SET DTLOG=
Exit


Groetjes,

Bonno Bloksma


---
[E-mail scanned at tio.nl for viruses by Declude Virus]

---
This E-mail came from the Declude.Virus mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.Virus".    The archives can be found
at http://www.mail-archive.com.

Reply via email to