This is my first attempt to share I hack I've made based on a few others hacks around the web. It worked for me but I can't guarantee it will work for you. If you try it, make sure you back up the original files you are modifying before attempting. I don't suggest this to novice MT users.
On October 13th, the MT-Blacklist plugin was released by Jay Allen. However, I found that the Blacklist.pm conflicts with the Adam Kalsey comment notification Hack.
There is a simple way of fixing this small error if you do not want to receive e-mails of your comments.
Open Blacklist.pm to line 2395 and you will see the following:
MT::Mail->send(\%head, $body);
Place the following code in its place:
MT::Mail->send(\%head, $body) unless $author->email eq $comment->email;
This will act the same as the Adam Kalsey Comment notification Hack as Patricia posted in reply to the original entry posted on the hack.
Originally posted at 2:02 PM
Updated 3:44 PM 10/15/2003 This post is also mirrored on Scriptygoddess.
Updated 4:39 PM 10/15/2003 If you are using Promoguy's More Meaningful Comment Notifications hack, you will need to edit Blacklist.pm, too, for MT to send your notifications as you did in /lib/MT/App/Comments.pm
Updated 8:42 PM 11/4/2003 With the latest release of the of the MT Plugin, version 1.5, the line in question is not at line 2395. It's at 3496. That location may change with further developments of this plugin. Remember, any tweaks made to the /lib/MT/App/Trackback.pm and the /lib/MT/App/Comments.pm modules must be made to the Blacklist.pm module for them to work with MT-Blacklist.
Updated 2:29 PM 12/14/2003 MT-Blacklist has been updated such that any tweaks you need to make to the /lib/MT/App/Trackback.pm and the /lib/MT/App/Comments.pm modules can now be made to the MTBlPing.pm and MTBlPost.pm modules that come with MT-Blacklist. That should save you from having to edit this hack back every time you upgrade. ![]()
Posted by Shawn at October 15, 2003 11:59 PM in Tweaking.
I'll have to wait until I get enough commenst to warrant a spammer.
Posted by: Michael at October 15, 2003 2:25 PMWell, better to be safe than sorry. People are starting to develop bots to spam MT.
Losers. I didn't get hit by Lolita but vig-rx's two posts were enough for me.
Just thought I'd drop a line. Hehe, I'm gonna start readin your blog now... seems pretty interesting, of course. :D
Posted by: Tim at October 15, 2003 10:16 PMHey glad you figured that out. I was wondering why my hack had reverted back to the old ugly MT comment notification format.
I wonder if he can fix his plugin so it won't undo my hack.
Posted by: Promo at October 16, 2003 10:24 AMI don't know why Blacklist was written to over ride Comments.pm
I forget exactly how I hacked it to match your hack but I got it working.
I'm pretty confident in the hack I made to implicate your hack of Comments.pm. I kept testing it and testing it. I've only had one person NOT able to post since I applied it. However, I think that problem is not related to the implication of Blacklist but just a burp MT decided to take when she wanted to post.
Posted by: Shawn at October 16, 2003 10:37 AMMT-Blacklist has to override MT::App::Comments::post in order to provide comment/trackback spam blocking and to provide a link to the de-spam feature in the comment notification email.
Until Six Apart releases a new version of Moveable Type giving
plugins the ability to run pre- and post-execution routines for Comments:post and Trackback::ping, my override is just as necessary as your hack for our respective functions. The only difference between our methods is that mine doesn't require the user to hack the MT source code.
Jay, thank you so much for the plugin and thank you for replying. 
I don't think many of us that have tweaked the MT source for our liking will mind having to tweak the MT-Blacklist source. Anything that stops spam is great.
I think many of us at the beginning were just unaware of the over rides. We're just spreading the word to others how to use the plugin and keep their favorite tweaks.
Posted by: Shawn at October 18, 2003 12:15 PMGood deal. I'm all for bending MT to one's will... :-) Hopefully in the future, we will all have to resort less and less to hacks as MT's plugin architecture is widened in scope.
Posted by: Jay Allen at October 18, 2003 12:24 PM


