sync all emails when app enter foreground