Java tutorial
//package com.java2s; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; public class Main { private static boolean isReplySign(MimeMessage msg) { boolean replySign = false; try { String[] header = msg.getHeader("Disposition-Notification-To"); if (header != null) { replySign = true; } } catch (MessagingException e) { e.printStackTrace(); } finally { return replySign; } } }