The Electronic Communications Privacy Act or ECPA is a US federal law that was enacted in 1986. It prevents US investigative agencies like the police, FBI or NSA from intercepting email messages, or from reading them while they are temporarily stored in interim storage devices, but only for a limited time of 180 days.