org.giavacms.base.pojo.MyMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of base Show documentation
Show all versions of base Show documentation
GiavaCMS Content Management System: Base Subsystem
The newest version!
/*
* Copyright 2013 GiavaCms.org.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.giavacms.base.pojo;
import java.io.InputStream;
import javax.mail.Folder;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.internet.MimeMessage;
public class MyMessage extends MimeMessage
{
private String id;
protected MyMessage(Folder arg0, InputStream arg1, int arg2)
throws MessagingException
{
super(arg0, arg1, arg2);
}
public MyMessage(Session session)
{
super(session);
}
protected void updateMessageID() throws MessagingException
{
setHeader("Message-Id", getId());
}
public String getId()
{
return id;
}
public void setId(String id)
{
this.id = id;
}
}