Heres the solution I implemented years ago with David.
Simply create 2 batch files: 1. One that checks if the review folder is empty (could be usefull) 2. One that checks if the Proc is over 500 !!! Using these 2 batch files, you can create a Scheduled task that runs every 10-15-20 minutes as you wish. For the Proc over 500, you should use a different SMTP than yours We are using the free Blat tool to send us emails or notifications. Blat.org I believe. And we also use a zip tool to send the content of the folder along in the email. You also need to change all the paths according to you. Thanks Stephan Chayer IntraSoft Solutions 450-581-2297 File: reviewfolder.cmd @echo off dir d:\imailspool\proc\review\*.smd >c:\imail\scripts\review.txt :: echo %errorlevel% if %errorlevel% == 1 goto empty :: 1 = empty ( quit ) :: 0 = send email to admin c:\winnt\BLAT "c:\imail\scripts\review.txt" -s "NS1 Declude Review Folder not empty" -t mana...@yourdomain.com -server (IP of smtp) -f mana...@yourdomain.com :empty File : decludeproc500.cmd @echo off :: SEND DIR TO A FILE dir d:\imailspool\proc\*.smd >c:\imail\scripts\decludeproc.txt If %errorlevel% == 1 goto DecProcUnder500 :: 1 = empty ( quit ) :: 0 = envoi d'un email a l'admin :: SEND FILE COUNT TO A FILE dir /b d:\Imailspool\proc | find /c /v "" >c:\imail\scripts\proc.txt :: READ UP TO 4 VARIABLES IN THE SPECIFIED FILE FOR /F "tokens=1,2,3,4 delims= " %%i in (c:\imail\scripts\proc.txt) do ( set var1=%%i set var2=%%j set var3=%%k set var4=%%l ) If %var1% LSS 500 goto DecProcUnder500 :: IF COMPARISON EXPRESSION :: EQU - equal NEQ - not equal LSS - less than LEQ - less than or equal :: GTR - greater than GEQ - greater than or equal :: DECLUDE OVER 500, PLEASE CHECK :: SHOULD USE AN EXTERNAL SMTP TO MAKE SURE ADMIN IS NOTIFIED echo Verify Declude Proc for issues zip -r -S -q -v over500declude decludeproc.txt c:\winnt\BLAT "c:\imail\scripts\procco500body.txt" -attach "c:\imail\scripts\over500declude.zip" -s "Declude Proc directory over 500" -t em...@yourdomain.com -server (IP or name of smtp server) -f em...@yourdomain.com goto end :DecProcUnder500 echo Declude Proc OK :end The file procco500body.txt has simply one line inside: Declude over 500, do something !! De : supp...@declude.com [mailto:supp...@declude.com] De la part de Harry Vanderzand Envoyé : 25 août, 2010 9:43 À : declude.junkmail@declude.com Objet : [Declude.JunkMail] Declude queue alert Is there any way that the system can give me an alert when the Declude queue fills up past a certain point? There have been a couple of cases recently that have caused Declude to stop processing. The mail backs up in the queue and I only realize it when someone complains or I notice that no mail has come in for a while. I then restart the service and processing starts up again. If I were to get an alert that say, 500 items were in the queue then I would know there is a problem. Thank you Please note our new Address Harry Vanderzand Intown Internet 740 Erbsville Road Waterloo, On, N2J 3Z4 519-741-1222 DISCLAIMER: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying,or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you. --- [This E-mail was checked by Declude] --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to imail...@declude.com, and type "unsubscribe Declude.JunkMail". The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to imail...@declude.com, and type "unsubscribe Declude.JunkMail". The archives can be found at http://www.mail-archive.com.