public boolean isEncrypted(){
try {
if(m_message.getContent() instanceof Multipart){
MimeMultipart p = (MimeMultipart)m_message.getContent();
if(p.getBodyPart(0).getContentType().startsWith("application/pkcs7-mime")){
return true;
}
}
} catch (IOException e) {
Exception ne = new Exception();
System.err.println(ExcpUtils.getMessage(e, ne));
return false;
} catch (MessagingException e) {
Exception ne = new Exception();
System.err.println(ExcpUtils.getMessage(e, ne));
return false;
}
return false;
}