Yes, on purely ethical grounds, it is wrong. It should not be done. Whether it’s illegal, i’m not so sure about that. Because this is a type of conversation that is often used to serve news in the media, or as the famous line often reads “an inside source has revealed”.
On the other hand, we cannot be absolutely sure that the accused was not actually harrassing the journalist but repeatedly sending the same type of emails which contain blasphemy. The accused may very well have been warned that such emails can be releaved and will land him/her in trouble.
It really is hard to say at this point in all honesty. More needs to be known about it to say much on it. But based on what is known, i’d say it’s both wrong and right. Wrong from a privacy perspective, and right from a law-abiding perspective.
Totally irrelevant/unrelated, but a close example:
Legally you can tell your lawyer about your past “misdeeds” and he/she will hold it in confidence, but if you tell your lawyer about something you’re going to do, he/she is obligated to report you. (Just thought i’d put that there, as to give it a legal perspective)