|
|
@ -252,10 +252,10 @@ public class SnEmailGatherTask { |
|
|
|
log.info("邮箱采集使用时间:{}",System.currentTimeMillis() - startTime); |
|
|
|
log.info("邮箱采集使用时间:{}",System.currentTimeMillis() - startTime); |
|
|
|
} catch (MessagingException e) { |
|
|
|
} catch (MessagingException e) { |
|
|
|
log.error("邮箱采集邮件解析异常:{}", e); |
|
|
|
log.error("邮箱采集邮件解析异常:{}", e); |
|
|
|
throw new RuntimeException(e); |
|
|
|
|
|
|
|
} catch (IOException e) { |
|
|
|
} catch (IOException e) { |
|
|
|
log.error("邮箱采集IO异常:{}", e); |
|
|
|
log.error("邮箱采集IO异常:{}", e); |
|
|
|
throw new RuntimeException(e); |
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
log.error("邮箱解析异常{}",e); |
|
|
|
}finally { |
|
|
|
}finally { |
|
|
|
//更新uid信息
|
|
|
|
//更新uid信息
|
|
|
|
if (StringUtils.isNotBlank(uid) && (uids.isEmpty() ||uids.indexOf(uid)>uids.indexOf(maintainVo.getEmailUid()))){ |
|
|
|
if (StringUtils.isNotBlank(uid) && (uids.isEmpty() ||uids.indexOf(uid)>uids.indexOf(maintainVo.getEmailUid()))){ |
|
|
|