Hi Bonno,
thank you.
Looks terrific !

Groetjes, Uwe



BB> Hi,

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

BB> 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.

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

>> We have IMail 6.06 on Win2000

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

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

BB> %DTLOG% %LOGFILE% Rotating virus directories

BB> C:
BB> cd \IMail\Spool\Virus

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

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


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

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

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

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

BB> :Einde
BB> SET LOGFILE=
BB> SET DTLOG=
BB> Exit


BB> Groetjes,

BB> Bonno Bloksma


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

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



-- 
Best regards,
 Uwe                            mailto:[EMAIL PROTECTED]

---
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