"The best way to measure spam is to be a spammer," wrote the researchers in a paper describing their work.