"Although homosexuality was at variance with Catholic teaching during the Middle Ages, official penalties for homosexual behavior, both by the church and temporal authorities, were rarely codified or enforced.Historian John Boswell noted that several bishops in the Middle Ages were thought by their contemporaries to have had gay relationships, and noted a potentially romantic or sexual tone to the correspondence of others with "passionate" male friends.