COLUMBIA — The S.C. Supreme Court ruled Wednesday that a man’s privacy was not violated when his wife’s daughter-in-law managed to get into his email and find out the name of his lover, because the messages remained in his inbox.

In their unanimous ruling, the justices decided the woman did not violate a 1986 federal law about email storage and ruled that a lawsuit from the husband could not go forward.

But the justices also pointed out that just because they ruled that the woman didn’t violate the husband’s privacy, it didn’t mean they liked what she did.

“This should in no way be read as condoning her behavior,” Justice Kaye Hearn wrote.