Freshness Warning
This article is over 9 years old. It's possible that the information you read below isn't current.
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.
i don’t know how dirty it is, but i changed lines 471 and 472 in lib/MT/App/Comments.pm (MT-3.15) from:
MT::Mail->send(\%head, $body)
or return $app->handle_error(MT::Mail->errstr());
to
MT::Mail->send(\%head, $body) unless $author->email eq $comment->email;
# or return $app->handle_error(MT::Mail->errstr());
to get rid of the annoying self-comments.
i’m sure you could just use a filter in your email app, too.
Heather’s mod worked for me. thanks heather and adam!
FYI, if you would like to do this in MT v.3.1x and have MT-Blacklist installed, the file to modify is called Submission.pm, located in your plugins folder: plugins/Blacklist/lib/Blacklist/App/Submission.pm
Around line 797 (almost the very bottom of the file) you can use Heather’s mod above.
Seems to work for me. Hope someone else finds this useful!
FYI, its lines 578-579 in MT 3.2
These are the last 15 comments. Read all 17 comments here.
This discussion has been closed.
Adam Kalsey
Mobile: 916.600.2497
Email: adam AT kalsey.com
AIM or Skype: akalsey
©1999-2012 Adam Kalsey.
Content management by Movable Type.
asb
October 24, 2004 8:51 PM
Has anything been done to fix this for MT 3x? I’m getting sooooo tired of getting my own comments.
I’d really appreciate an answer and I’d more appreciate a posted fix!
Thanks.