Developer: Using SpamSieve Filter from Another Program

I’m a developer and I’m considering building a mail server that responds to spam as if undeliverable, creating a “hard bounce” that will, over time, reduce spam deliveries. I’d like to use the training SpamSieve has had to accept or reject messages from my mail server, so I’m looking for a way to use the SpamSieve corpus in another program, or pass the decision-making to SpamSieve itself. Is this possible?

The SpamSieve corpus uses a custom file format that’s subject to change. You can, however, pass the decision-making to SpamSieve via its AppleScript interface.