The magistrate said the messages were "hideously offensive and vile", and that the man was evidently "tormented and distressed" at trial.