Apple Interview Question

What techniques can be used to design a spam filter?