It might turn out to be a dumb move, or it might turn out to be a smart move. We do know that moderates and "liberals" in Iran are a lot more vocal now in opposition to Ahmadinejad's anti-western stance. Israel's "leaked info" might have helped.
But like I said, I don't think we'll really know until the whole thing plays itself out.
I'm convinced that the only reason the "moderates" don't like Ahmadinejad's stance is that he's made it public. They'd prefer that he use a little more stealth.