Updated loop mail part, including a fixed error in fetch loop call.