rewrote email slave to send all unresolved emails