add polling mode to mail listener