A probation officer was racially abused by a man she was trying to help, a court heard.
Mark Evitt, 55, was meeting with the female officer to try and arrange accommodation for him.
He had made himself 'intentionally homeless' after threatening people in the property he had previously lived in, Manchester Crown Court heard.
But as the officer made enquiries to try and help him, Evitt, from Newton Heath, launched into a vile racist tirade towards her, prosecutor Nigel Booth said.
He said: "You're probation, you are supposed to help me. You f****** black c***."
The officer was said to be shocked following the incident, which happened in April last year.
In a statement read to the court, she said: "That's not the sort of conduct that anybody should expect to put up with in this sort of job."
Evitt's barrister Julian Goode said the defendant accepts his conduct was 'deplorable'.
Evitt pleaded guilty to an offence of racially aggravated harassment.
He was also in court for another incident, after admitting a communications offence.
Evitt sent a message to the daughter of his former partner in December 2017, which read: "You think you are smart. I know what's going on."
He said there was a 'surprise coming your way', adding: "You are all getting destroyed, believe me."
Sentencing, Judge Anthony Cross QC said that Evitt had a 'bad' criminal record, but noted that he has stayed out of trouble after committing these offences.
He added that Evitt's offending was 'slowing down' as the defendant got older.
Judge Cross told Evitt: "The first offence was bad, the second offence (against the probation officer) was disgusting.
"It's just disgusting conduct. The probation officer was trying to help you.
"You should be ashamed of yourself."
"I am sir," replied Evitt.
"Well you should be," the judge continued.
"I am not having public servants dealt with in this way. You need help with your anger management."
Evitt, of Windsor Road, Newton Heath, was sentenced to three months in prison, suspended for 12 months.
He must also complete 20 rehabilitation activity requirement days.
Get breaking news first on the free Manchester Evening News app - download it here for your Apple or Android device. You can also get a round-up of the biggest stories sent direct to your inbox every day with the MEN email newsletter - subscribe here . And you can .
Got a story or an issue you want us to investigate? Want to tell us about something going on where you live?
Let us know - in complete confidence - by emailing email@example.com, calling us on 0161 211 2920, tweeting us @MENnewsdesk or messaging us on our Facebook page. You can also send us a story tip using the form here.
Join the Manchester Evening News breaking news Facebook group for a place to read and talk about breaking news in Greater Manchester.
To download our app to get all the latest news visit here.