Mail collection and parsing scripts