| !Run file for AntiSpam 1.68 or later

| First clean up possible 'left overs' from earlier installations and run our
| !Boot file to set a pointer to the main application directory...

Unset AntiSpam*
Run <Obey$Dir>.!Boot

| Create the Choices directory that was set in !Boot.
CDir <AntiSpam$Choices>

| Set and create a Scrap directory.
| You may want to change this if you use Forwarding and your <Wimp$ScrapDir>
| is on a RAM disk. If you do, make sure it points to a writable location...

Set AntiSpam$Scrap <Wimp$ScrapDir>.AntiSpam
CDir <AntiSpam$Scrap>

| Some modules which are absolutely necessary...

RMEnsure Internet 0.00 Error !AntiSpam requires the Internet module
RMEnsure Resolver 0.00 Error !AntiSpam requires the Resolver module

| Start up SysLog if it isn't already running.

If "<SysLog$Dir>"="" Then If "<SysLog$LogDir>"="" Then Error !SysLog application not seen by filer
RMEnsure SysLog 0.17 Run <SysLog$Dir>.!Run
RMEnsure SysLog 0.17 Error !AntiSpam needs SysLog 0.17 or later

| Set the wimp slot and run the application.
|
| The -log switch specifies the name of the application log file. By default,
| the name AntiSpam will be used (logging is no longer optional).
|
| The -boxes switch tells AntiSpam the maximum number of mailboxes to expect.
| This value can be increased, in which case it may be necessary to do the
| same to the wimp slot.
| The -rules switch does the same for the maximum number of rules.
|
| By default, the passwords in the Choices window are masked. If you don't
| want that, add the -nomask switch to the command line.
|
| If you don't have the AcornURI module, disable the checks for its presence
| by adding the -nouri switch.

Wimpslot -min 320k -max 320k
Run <AntiSpam$Dir>.!RunImage -log AntiSpam -boxes 20 -rules 1024
