| This file should be called from 'TransEnd', which gives the
| name of the 'local file' as the first parameter.

Set Bogo$Account %0
Set Bogo$BackUp 0
Set Bogo$Incoming 0
IfThere <POPstar$MailDir>.spool.mail.backup Then Set Bogo$BackUp 1
IfThere <POPstar$MailDir>.spool.mail.text.<Bogo$Account> Then Set Bogo$Incoming 1
IF "<Bogo$BackUp>" = "1" AND "<Bogo$Incoming>" = "1" THEN Copy <POPstar$MailDir>.spool.mail.text.<Bogo$Account> <POPstar$MailDir>.spool.mail.backup.<Bogo$Account> ~cf~V 
IF "<Bogo$Incoming>" = "1" THEN bogofilter -pluM < <POPstar$MailDir>.spool.mail.text.<Bogo$Account> > <POPstar$MailDir>.spool.mail.checked.<Bogo$Account>
IF "<Bogo$Incoming>" = "1" THEN Wipe <POPstar$MailDir>.spool.mail.text.<Bogo$Account> ~C~VF
UnSet Bogo$BackUp
UnSet Bogo$Incoming
Unset Bogo$Account
