update getmails script