|
@@ -66,7 +66,7 @@ public class EmailUtil {
|
|
|
// 1.邮件正文
|
|
|
if ("String".equals(contentClass)) {
|
|
|
// 文件名 = 邮件主题 + 邮件日期
|
|
|
- String fileName = emailTitle + "_" + emailDate + ".html";
|
|
|
+ String fileName = emailDate+"_邮件正文" + System.currentTimeMillis() + "_" + emailDate + ".html";
|
|
|
String content = partContent.toString();
|
|
|
emailContentInfoDTO = collectTextPart(part, content, filePath, fileName);
|
|
|
} else if ("BASE64DecoderStream".equals(contentClass)) {
|
|
@@ -99,7 +99,7 @@ public class EmailUtil {
|
|
|
contentClass = partContent.getClass().getSimpleName();
|
|
|
if ("String".equals(contentClass)) {
|
|
|
// 文件名 = 邮件主题 + 邮件日期
|
|
|
- String fileName = emailTitle + "_" + emailDate + ".html";
|
|
|
+ String fileName = emailDate+"_邮件正文" + System.currentTimeMillis() + "_" + emailDate + ".html";
|
|
|
String content = partContent.toString();
|
|
|
emailContentInfoDTO = collectTextPart(part, content, filePath, fileName);
|
|
|
}
|