New quemail. Fix some bugs of taskqueue.