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