update select_coremail.sh coremail whether running