public final class MaildirMessage
extends gnu.mail.providers.ReadOnlyMessage
MimeMessage.RecipientTypecontent, contentStream, dh, flags, headers, modified, savedATTACHMENT, INLINE| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
Enumeration |
getAllHeaderLines()
Returns all the header-lines.
|
Enumeration |
getAllHeaders()
Returns all the headers.
|
protected InputStream |
getContentStream()
Returns the unencoded bytes of the content.
|
DataHandler |
getDataHandler()
Returns a data handler for accessing this message's content.
|
String[] |
getHeader(String name)
Returns all the values for the specified header name.
|
String |
getHeader(String name,
String delimiter)
Returns all the values for the specified header name as a single
string, with headers separated by the given delimiter.
|
Enumeration |
getMatchingHeaderLines(String[] names)
Returns all the header-lines with any of the given names.
|
Enumeration |
getMatchingHeaders(String[] names)
Returns all the headers with any of the given names.
|
Enumeration |
getNonMatchingHeaderLines(String[] names)
Returns all the header-lines without any of the given names.
|
Enumeration |
getNonMatchingHeaders(String[] names)
Returns all the headers without any of the given names.
|
protected void |
setExpunged(boolean expunged)
Allow MaildirFolder access to set the expunged flag after expunge.
|
void |
setFlags(Flags flag,
boolean set)
Set the specified flags(reflected in the
info field). |
addHeader, addHeaderLine, removeHeader, saveChanges, setContent, setContent, setHeaderaddFrom, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentType, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getInputStream, getLineCount, getMessageID, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, reply, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFrom, setFrom, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageId, writeTo, writeToaddRecipient, getFolder, getMessageNumber, isExpunged, match, setFlag, setMessageNumber, setRecipientprotected void setExpunged(boolean expunged)
setExpunged in class Messagepublic void setFlags(Flags flag, boolean set) throws MessagingException
info field).setFlags in class gnu.mail.providers.ReadOnlyMessageflag - the flags to be setset - the value to be setIllegalWriteException - if the underlying implementation
does not support modification of existing valuesMessagingExceptionpublic String[] getHeader(String name) throws MessagingException
MimeMessagegetHeader in interface PartgetHeader in class MimeMessagename - the header nameMessagingExceptionpublic String getHeader(String name, String delimiter) throws MessagingException
MimeMessagenull, only the first header is
returned.getHeader in interface MimePartgetHeader in class MimeMessagename - the header namedelimiter - the delimiterMessagingExceptionpublic Enumeration getAllHeaders() throws MessagingException
MimeMessagegetAllHeaders in interface PartgetAllHeaders in class MimeMessageMessagingExceptionpublic Enumeration getAllHeaderLines() throws MessagingException
MimeMessagegetAllHeaderLines in interface MimePartgetAllHeaderLines in class MimeMessageMessagingExceptionpublic Enumeration getMatchingHeaders(String[] names) throws MessagingException
MimeMessagegetMatchingHeaders in interface PartgetMatchingHeaders in class MimeMessagenames - the header names to matchMessagingExceptionpublic Enumeration getMatchingHeaderLines(String[] names) throws MessagingException
MimeMessagegetMatchingHeaderLines in interface MimePartgetMatchingHeaderLines in class MimeMessageMessagingExceptionpublic Enumeration getNonMatchingHeaders(String[] names) throws MessagingException
MimeMessagegetNonMatchingHeaders in interface PartgetNonMatchingHeaders in class MimeMessagenames - the header names to ignoreMessagingExceptionpublic Enumeration getNonMatchingHeaderLines(String[] names) throws MessagingException
MimeMessagegetNonMatchingHeaderLines in interface MimePartgetNonMatchingHeaderLines in class MimeMessageMessagingExceptionpublic DataHandler getDataHandler() throws MessagingException
MimeMessagegetDataHandler in interface PartgetDataHandler in class MimeMessageMessagingExceptionprotected InputStream getContentStream() throws MessagingException
MimeMessagegetContentStream in class MimeMessageMessagingExceptionMimeBodyPart.getContentStream()© Copyright 2003, 2004 The Free Software Foundation, All rights reserved