Court hands down jail terms in defamation case