Content Management
Comment notification hack
Freshness Warning
This blog post is over 22 years old. It's possible that the information you read below isn't current and the links no longer work.
21 Aug 2002
I find it irritating that each time I reply to someone’s comment on this site I receive an email notifying me that I’ve posted a comment. I like getting the notifications when someone else comments, just not when I comment.
So I opened up the MT source code and fixed it. Now when I add a comment, I don’t get the email.
Open lib/MT/App/Comments.pm and find the line that says MT::Mail->send(\%head, <<BODY);
. (It’s line 123 in MT 2.21) Change it to read MT::Mail->send(\%head, <<BODY) unless $author->email eq $comment->email;
Now the author of a post won’t receive a comment notification if the commenter’s email is the same as the author’s.