Trial of Glasgow man accused of sending 'offensive' Captain