Hi guys,
I recently wanted to use Antispam but instead of emailing the moderators of the site I wanted emails to be sent to a specific email address. To do this I added some simple integration with the Rules module to expose 2 events to it that I could then use to create a rule to send an email to an arbitrary email address.
Here is a small patch that exposes those two events to Rules. One event is for when a node is marked as spam by Antispam and the other is for when a comment is marked as spam by Antispam.
I 've run some tests and they seem to be working ok but I would appreciate some more feedback about this.
The patch was made against branch 6.x-1.x.
Comments
Comment #1
jose.benitez commentedThe attached patch improves the original posted patch.
The improvement of this new patch consists on the addition of a new rule that is invoked when a normal
comment is detected (that means a non-spam comment). For example, this allows the admin having an option to set a rule for receiving only emails when a non-spam comment is made.
This new patch is for the version 6.x-1.3 of Antispam module (datestamp 1290321203).
Comment #2
scorchio commentedI'm going to test this. For a site I need the "emails only on non-spam comments" behaviour.
Comment #3
zkrebs commentedAny hope for D7?
Comment #4
avpaderno