improve the scrapy email code to reduce emailing counts