PORTLAND, Maine (AP) -- A Maine supreme court justice says a cell phone company turned over more than 50,000 text messages in a divorce case in which a protection order was in place.

Justice Donald Alexander criticized U.S. Cellular, saying it violated federal privacy law. The lawyer for the husband, who used subpoenas to get the texts from the wife and another man, was suspended for six months.

Alexander also ordered the Maine Board of Overseers of the Bar to alert state and federal prosecutors about the practices of U.S. Cellular.

Alexander wrote that U.S. Cellular violated the federal Stored Communications Act by turning over the texts. His order, signed Jan. 31, was first reported by the Bangor Daily News.

U.S. Cellular and the sanctioned attorney didn't immediately return calls from The Associated Press.