Thank you for the tag, Carolyn. I can certainly relate to this. When we lived on a 40 acre property we often fed the magpies and they were fine. They won’t attack if they know and trust you. However, when we moved to town it was a different story, there are a few gum trees on the corner closest to our house and I was attacked while walking the dog during the last mating season.
It is a shock because you never hear the buggers until they hit you from behind or whoosh by very close. I usually have a bag or something I can wave at them to warn them off, but it isn’t exactly fun. I remember being attacked by make plovers as a child too, but they nest on the ground and have spikes on their legs.