gnu.mail.providers.maildir
Class MaildirMessage
- MimePart, Part
public final class MaildirMessage
extends gnu.mail.providers.ReadOnlyMessage
The message class implementing the Maildir mail protocol.
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).
|
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 |
addFrom , addRecipient , addRecipients , getAllRecipients , getFlags , getFolder , getFrom , getMessageNumber , getReceivedDate , getRecipients , getReplyTo , getSentDate , getSubject , isExpunged , isSet , match , reply , saveChanges , setExpunged , setFlag , setFlags , setFrom , setFrom , setMessageNumber , setRecipient , setRecipients , setReplyTo , setSentDate , setSubject |
equals
public boolean equals(Object other)
getHeader
public String[] getHeader(String name)
throws MessagingException
Returns all the values for the specified header name.
Note that headers may be encoded as per RFC 2047 if they
contain non-US-ASCII characters: these should be decoded.
- getHeader in interface Part
- getHeader in interface MimeMessage
getHeader
public String getHeader(String name,
String delimiter)
throws MessagingException
Returns all the values for the specified header name as a single
string, with headers separated by the given delimiter.
If the delimiter is null
, only the first header is
returned.
- getHeader in interface MimePart
- getHeader in interface MimeMessage
name
- the header namedelimiter
- the delimiter
setExpunged
protected void setExpunged(boolean expunged)
Allow MaildirFolder access to set the expunged flag after expunge.
- setExpunged in interface Message
setFlags
public void setFlags(Flags flag,
boolean set)
throws MessagingException
Set the specified flags(reflected in the info
field).
- setFlags in interface gnu.mail.providers.ReadOnlyMessage