The case was referred to the European Court of Justice (ECJ) by the Court of Appeal, and in December 2016 the ECJ ruled that the general and indiscriminate retention of emails and electronic communications by governments was illegal.