A sync script to get email from a server