Michal Altair Valasek a écrit :

> @ECHO OFF
> C:\perl\bin\perl.exe -T -w C:\perl\bin\spamassassin -e <%1 >NUL
> IF "%ERRORLEVEL%"=="0" GOTO NOSPAM
> :SPAM
> ECHO 550 Message rejected because looks like spam. Consider reformulating
> it. >%1.rej
> EXIT 19
> :NOSPAM
> ECHO %1 is not spam >> C:\spam.log
> EXIT 0

Thank you Michal.

I don't know if it works lik this but the doc says

exit [/b] [ExitCode]

I suppose one has to replace "exit 0" and "exit 19" :

exit /b 0
exit /b 19

Is that right ?

Then, your solution rejects spam. Maybe you could consider 
adding a second parameter to allow marking without 
rejecting. Leaving the reject decision to the end user's MUA 
filtering system ?

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to