|
@@ -684,7 +684,6 @@ public class EmailParseService {
|
|
|
private void rePart(String account, String subject, Date sendDate, Part part,
|
|
|
List<EmailContentInfoDTO> emailContentInfoDTOList) throws Exception {
|
|
|
String disposition = part.getDisposition();
|
|
|
- String fileName = null;
|
|
|
if (disposition != null && (disposition.equals(Part.ATTACHMENT) || disposition.equals(Part.INLINE))) {
|
|
|
String emailDate = DateUtil.format(sendDate, DateConst.YYYYMMDDHHMMSS24);
|
|
|
String emailDateStr = DateUtil.format(sendDate, DateConst.YYYYMMDD);
|
|
@@ -692,7 +691,7 @@ public class EmailParseService {
|
|
|
|
|
|
EmailContentInfoDTO emailContentInfoDTO = new EmailContentInfoDTO();
|
|
|
|
|
|
- fileName = MimeUtility.decodeText(part.getFileName());
|
|
|
+ String fileName = MimeUtility.decodeText(part.getFileName());
|
|
|
emailContentInfoDTO.setFileName(fileName);
|
|
|
emailContentInfoDTO.setFileSize(part.getSize());
|
|
|
|
|
@@ -723,7 +722,7 @@ public class EmailParseService {
|
|
|
emailContentInfoDTOList.add(emailContentInfoDTO);
|
|
|
} else {
|
|
|
if (log.isInfoEnabled()) {
|
|
|
- log.info("邮件{} 没有附件(fileName={},disposition={}),下载不了附件内容!", subject, fileName, disposition);
|
|
|
+ log.info("邮件{} 没有附件(fileName={},disposition={}),下载不了附件内容!", subject, part.getFileName(), disposition);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -734,8 +733,8 @@ public class EmailParseService {
|
|
|
Part bodyPart = multipart.getBodyPart(i);
|
|
|
Object content = bodyPart.getContent();
|
|
|
if (content instanceof String) {
|
|
|
- if (log.isDebugEnabled()) {
|
|
|
- log.debug("邮件{} 获取的正文不做解析,内容是 {}", subject, content);
|
|
|
+ if (log.isInfoEnabled()) {
|
|
|
+ log.info("邮件{} 获取的正文不做解析,内容是 {}", subject, content);
|
|
|
}
|
|
|
continue;
|
|
|
}
|