pushmail long pulling logic