RubySpamAssassin

Interacting with SpamAssassin's daemon process used to be a pain in the ass. Shelling out to run spamc, parsing the text etc.

Now you just need to:

require 'RubySpamAssassin'
include RubySpamAssassin

spam_client = SpamClient.new("host_running_spamd", "port_spamd_is_listening_on", timeout)
# MyMailer is your ActionMailer
# check will also accept a string, if you're into that kind of thing
report = spam_client.check(MyMailer.my_email.to_s)
p report.inspect

Wasn't that easy?

Cucumber and rspec tests are on their way.

Contributing to RubySpamAssassin

Copyright © 2011 Kevin Poorman. See LICENSE.txt for further details.