An ex-boyfriend messaged his old partner after six years of silence and told her he would “murder her in broad daylight”, a court heard.