Court examines legality of email evidence in criminal proceedings