|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.Message
javax.mail.internet.MimeMessage
com.silverpeas.mailinglist.service.job.BetterMimeMessage
public class BetterMimeMessage
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage |
---|
javax.mail.internet.MimeMessage.RecipientType |
Field Summary | |
---|---|
static String |
AUTO_SUBMITTED_HEADER
|
static String |
SPAM_FLAG_HEADER
|
static String |
SPAM_LEVEL_HEADER
|
Fields inherited from class javax.mail.internet.MimeMessage |
---|
content, contentStream, dh, flags, headers, modified, saved |
Fields inherited from class javax.mail.Message |
---|
expunged, folder, msgnum, session |
Fields inherited from interface javax.mail.Part |
---|
ATTACHMENT, INLINE |
Constructor Summary | |
---|---|
BetterMimeMessage(javax.mail.internet.MimeMessage message)
|
Method Summary | |
---|---|
float |
getSpamLevel()
Returning the content of the X-Spam-Score header. |
protected boolean |
isAutomaticMessage()
|
boolean |
isBounced()
Indicates if this email is automatic ou bounced . |
protected boolean |
isDeliveryStatus(String contentType)
Indicates if the corresponding MimeType is a content-type for delivery status notifications (DSNs). |
protected boolean |
isMessageReport(String contentType)
A multipart/report message content, as defined in RFC 3462. |
protected boolean |
isNotification(String contentType)
|
boolean |
isSpam()
Looking for a X-Spam-Flag header in the message. |
Methods inherited from class javax.mail.internet.MimeMessage |
---|
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeTo, writeTo |
Methods inherited from class javax.mail.Message |
---|
addRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SPAM_FLAG_HEADER
public static final String SPAM_LEVEL_HEADER
public static final String AUTO_SUBMITTED_HEADER
Constructor Detail |
---|
public BetterMimeMessage(javax.mail.internet.MimeMessage message) throws javax.mail.MessagingException
javax.mail.MessagingException
Method Detail |
---|
public boolean isSpam() throws javax.mail.MessagingException
javax.mail.MessagingException
public float getSpamLevel() throws javax.mail.MessagingException
javax.mail.MessagingException
public boolean isBounced() throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
protected boolean isAutomaticMessage() throws javax.mail.MessagingException
javax.mail.MessagingException
protected boolean isNotification(String contentType)
protected boolean isDeliveryStatus(String contentType)
contentType
- the content-type for the mail part.
http://www.ietf.org/rfc/rfc1894.txt
protected boolean isMessageReport(String contentType)
contentType
- the content-type for the mail part.
http://www.ietf.org/rfc/rfc3462.txt
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |