OK, thanks. I hadn't thought such a thing would be worth the bother, but I guess spam will find a way.
I guess the eventual problem here is that everyone affected will turn off reception of messages from strangers. That would make XMPP somewhat less useful as a general method of getting in touch with someone.