Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
        }
    }
}