Trouble with contacts on server and contacts synchronization -- ongoing checks and pains -- vcards 2.1 not recognized on import

I found a script, not just from somewhere but with a repo, so improvements can be posted: