Irvine Scottish Green candidate jailed for campaign of abuse