@echo off

rem Called by sac.exe (SpamAssassin Caller) with:
rem   InputEmail OutputEmail PortNumber MaxSize Preferences [ -u dirspec ]
rem   %1         %2          %3         %4      %5            %6 %7
rem
rem Preferences is ignored. Hard-code it into your remote machine's spamd startup.

rem Spamd machine IP here  +----------+
rem                        |          |
spamc -p %3 -s %4 %6 %7 -d 192.168.1.97 < %1 > %2

echo rc=%ERRORLEVEL%
exit(%ERRORLEVEL%)
