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.
addFrom , addHeader , addHeaderLine , addRecipients , addRecipients , createInternetHeaders , 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 , updateHeaders , 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)
getDataHandler
public DataHandler getDataHandler()
throws MessagingException
Return a DataHandler for the content within this part.
The DataHandler allows clients to operate on as well as retrieve
the content.
- getDataHandler in interface Part
- getDataHandler in interface MimeMessage
getHeader
public String[] getHeader(String name)
throws MessagingException
Get all the headers for this header name.
Returns null if no headers for this header name are available.
- getHeader in interface Part
- getHeader in interface MimeMessage
name
- the name of this header
getNonMatchingHeaders
public Enumeration getNonMatchingHeaders(String[] names)
throws MessagingException
Return non-matching headers from this envelope as an Enumeration of
Header objects.
- getNonMatchingHeaders in interface Part
- getNonMatchingHeaders in interface MimeMessage
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