Love Letters of a Portuguese Nun (1977)
Love Letters of a Portuguese Nun (German: Die Liebesbriefe einer portugesischen Nonne) is a 1977 West German-Swiss movie directed by Jess Franco. It tells the story of Maria, a girl in Inquisition-era Portugal, whom a priest sees cavorting with a boy. He orders her to become a nun as penance. In the convent Maria gets subjected to all sorts of torture and humiliation at the hands of the priest and the mother superior.
More at Wikipedia.