02/10/03

Comments 3

I know what I said!

Quick Movable Type hack. If you ever reply to users who’ve left comments on your site – you’ll get a email notification the same as you do for every commenter. Via the Movable Type support forum, I found a way of stopping it. Go to lib/MT/App/Comments.pm in your MT folder. Find the line that reads:

MT::Mail->send(\%head, <

This is on line 152 if you’re using MT 2.6. Change it to:

MT::Mail->send(\%head, $body) unless $author->email eq $comment->email;

And you’re done.

Technorati TagsTags: ,

Comments | RSS

#1

Kevin Davis said 1757 days ago:

Very good work Jon!

I will have to dip my toes in the source code and try this out.

Your site is turning into a wonderful designer's resource!
#2

garoo said 1756 days ago:

I'm not using MovableType, but isn't there a risk that, with this modification, you wouldn't notice someone posting comments pretending to be you? (Or maybe I'm a bit paranoid with comments.)
#3

Jon Hicks said 1755 days ago:

True, that would be a possibility, although they would have to be awful cad to do a thing like that though. (I'm paranoid now).

Presumably, if you were a whizz with Perl, you could sniff out the IP address as well, which would help.

Elsewhere

The Rissington Podcast - weekly shenanigans with Jon Oxton

Hicksmade - unique handmade goods by Leigh Hicks width=

love

Brit Pack: A proud member I love Omniweb Coda Segment Publishing I buy my type from Veer The Forgiveness Project