Fork me on GitHub

IMAP 读取含有附件邮件超慢问题

添加以下配置:
Properties props = new Properties();
props.setProperty("mail.imap.partialfetch", "false");
props.setProperty("mail.imaps.partialfetch", "false");

关闭读取附件时分批获取 BASE64 输入流的配置
真是天坑!
参考:
http://landcareweb.com/questions/21386/ji-yu-sslde-javamail-imapfei-chang-man-pi-liang-huo-qu-duo-tiao-xiao-xi
posted @ 2018-12-26 23:28  郑斌blog  阅读(1672)  评论(0编辑  收藏  举报