Sorry mate, but I think you are in the wrong here.
He should not have tried to overtake on the approach to a junction, but you have a duty to give way to traffic already on the main road and might have anticipated that he would attempt an overtake if the road was straight and clear.
For what it's worth, I drive assuming every other driver is a complete cock and so far I haven't hit or been hit.