OP I sympathise but I sadly this is driving in modern Britain.
The only bit that ultimately matters is not putting yourself and others at risk. It's sadly a case of make room for the douche bags, metaphorically or literally count to ten (five if you're milder or slower at counting than me) and carry on. No good can come of being difficult or trying to teach them a lesson or put them in their place. As far as they are concerned the ONLY place that they should be is in front of you. You can't beat or educate this (not without some kind of blue lighted vehicle or a scheme involving an as yet undeveloped rocket and a one way ticket to Jupiter).
Today I witnessed some poor gent on a Cube road bike get close passed out of sheer bone idle laziness five times in the space of a mile. What's so bloody infuriating is that as the car in the outside lane of a two lane each way road, every single one of those times I left a big enough space in front of me to allow the perpetrators in the inside lane more than enough room to overtake in a manner that would have been safe for all. I doubt any of them were malice but unthinking incompetence of the first order.