AN oil worker sent Nicola Sturgeon a threatening email that said she should “take a bullet” over her stance on independence.

William Dall, 44, sent several messages to the First Minister, a court heard.

In one, he told her she was “a liability that needs getting rid of by whatever means it takes.”

Dall, from Portlethen, Aberdeesnhire, admitted uttering offensive remarks and making a threat when he appeared at Aberdeen Sheriff Court on Wednesday.

He was caught when the messages, sent to the politician’s official inbox, were intercepted by a communications manager.

He sent the late-night emails after getting irate while watching the news on TV.

The court heard that after drinking “a few” glasses of wine, Dall, a mechanical engineer, sent the email to Sturgeon referencing a “bullet” at around 10.30pm on May 27.

Fiscal depute John Richardson said: “That was obviously assessed as threatening.”

And in the process of reporting the email to police the following morning, civil servants found a previous message from the same sender dated April 26.

In it, Dall called Sturgeon a liar and a “liability”.

He instructed her to “check the dictionary” over statements she made regarding her wish for a second Scottish independence referendum, in reference to the portrayal of the 2014 vote as “once in a generation”.

Defence solicitor Graham Morrison said: “He was very frustrated with politics and what has been going on over the last few years.

“He’s sending these e-mails after a couple of glasses of wine when he had seen something on the news.

“Another night, another news story, another few glasses of wine and he gets out the iPad.”

The court heard that Dall claimed he had written that the first minister should be “taking a bullet” by accident.

Mr Morrison said his client had intended to say “taking the bullet,” which he believed to be a phrase relating to firing someone.

He added: “He thought she should get sacked.

“He didn’t mean anything by it at all and he had no intention of following up these threats.”

Sheriff Ian Wallace found Dall’s explanation “difficult to accept” and said: “The matter of the threat was clear, whether you intended to carry that out or not.”

Dall, of Bishopston Circle, Portlethen, will be sentenced next month.

A Scottish Government spokesman said last night: “Threats and intimidation have absolutely no place in a democratic society, and no-one should be the target of such behaviour, regardless of their political views or the office they hold.”