add loop script for mail-fetch