0
我們最近將JavaMail API升級到最新版本1.5.4。升級後,我們發現附件(文件名> 60個字符)在Outlook(使用POP3配置)中接收爲.dat文件名。請注意,此問題僅在文件名> 60個字符且Outlook配置了POP3時纔會出現。JAVAMAIL附件問題
我們注意到,名稱&文件名屬性在JAVAMAIL升級後作爲多行出現。
郵件標題前JAVAMAIL UPGRADE
Content-Type: application/octet-stream;
name=Automation_Team_Directory_05-Dec-2015_123219_21312_155018252272708.PDF
Content-Disposition: attachment;
filename=Automation_Team_Directory_05-Dec-2015_123219_21312_155018252272708.PDF
郵件標題後JAVAMAIL升級
Content-Type: application/octet-stream;
name*0=Automation_Team_Directory_05-Dec-2015_123219_21312_155018252;
name*1=272708.PDF
Content-Disposition: attachment;
filename*0=Automation_Team_Directory_05-Dec-2015_123219_21312_155018252;
filename*1=272708.PDF
,我們如何解決這個問題,使之與POP3 Outlook中正常顯示附件?