fixing MT comment notification for gmail

After I fixed last Movable Type error, I decided to work another problem I was having. I use gmail a lot, since I can access it from my phone and even my iTouch when I’m out and don’t feel like borrowing someone’s computer to check out what spam comments have been randomly left on this … Continue reading “fixing MT comment notification for gmail”

After I fixed last Movable Type error, I decided to work another problem I was having.

I use gmail a lot, since I can access it from my phone and even my iTouch when I’m out and don’t feel like borrowing someone’s computer to check out what spam comments have been randomly left on this blog. (And all the good stuff too, sure.) Gmail’s Conversations feature works great with one to one e-mail, but fail for reading comment notifications. The comments get split by the commenter’s e-mail address, so I’ll have multiple different conversations listed for the same post, and it’s impossible to read the messages in chronological order.

I hacked MT 3.whatever to fix that, and have all comment notifications (regardless of what e-mail address entered, or even if none were at all), but sixapart broke my hack in 4.0. I’ve been looking thru files off and on since then to figure out how to re-break the code to work for me, and I figured it out this morning.

In the folder where your put all the cgi MT files, look in /lib/MT and open app.pm. Look for the following block of code, which should be about line 1375

In 4.1: it’s now line 1690

my %head = (
To => $author->email,
$from_addr ? ( From       => $from_addr ) : (),
$reply_to  ? ( 'Reply-To' => $reply_to )  : (),
Subject => '['
. $blog->name . '] '
. $app->translate( "New Comment Added to '[_1]'", $entry->title )
);

The from address is what you have to change, though I went and changed reply to be sure

my %head = (
To => $author->email,
$from_addr ? ( From       => 'youremailaddress@whatever.com' ) : (),
$reply_to  ? ( 'Reply-To' => 'youremailaddress@whatever.com' )  : (),
Subject => '['
. $blog->name . '] '
. $app->translate( "New Comment Added to '[_1]'", $entry->title )
);

Now all comments will be grouped by post in gmail. Next thing to fix is the left side bar over there.

This is becoming far too techy. I must find some time to mark out over Fukudome later on.