...and doored once, all while I was observing all laws.
I don't know about your country, but I looked up the road code for cyclists in mine just a few days ago, and it actually specifies that you aren't to come within a metre of a parked car (i.e., close enough for an open door to bother you) -- and you're to move yourself firmly in the way of traffic behind you if necessary to make that clearance, rather than risk being so left [EDIT: so 'kept to the right', for Americans] that they try to overtake you and you're squeezed in an unsafe place.
that said, I actually go out of my way to not piss off motorists -- I'll glide along when I see in a rear vision mirror that someone is in their parked car and risk the door rather than risk strangers with large weapons thinking I'm obnoxious.