RuleSim: A toolkit for simulating rule-based spam filters operation and optimising filtering throughput