A British Columbia woman was issued a lifetime ban at the US border after officials found an email with her doctor about a fentanyl overdose she survived a year ago.

Chelsea, 28, whose last name is being withheld due to fears that it could affect future employment, answered a series of questions about drug use while attempting to cross the Washington-British Columbia border. She said her phone, which didn't have a password, was searched for about two hours. During questioning after her phone was searched, she admitted to using illegal drugs before, including cocaine.

At the US border, the searching of electronic devices, including smartphones, is allowed as part of inspection. Warrantless searches on phones are also allowed at the Canadian border—a practice defense lawyers are trying to end.

"It was super violating—I couldn't believe they went into my sent emails folder and found something from a year ago that was addressed to my doctor," Chelsea said. "It was really humiliating, and it felt terrible having to bring that up."