try to fix maildir scan.

Signed-off-by: Bao Haojun <baohaojun@smartisan.cn>