Interface IIMAPMessage
public interface IIMAPMessage
IMAP Message interface
Can :
- get data like subject, content, sender and recipient, dates, attachments
- get or set flags
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getFlagValue
(IIMAPFlag flag) return the value associated to a flagjakarta.mail.Address
getFrom()
Collection
<jakarta.mail.Address> void
set flag value
-
Method Details
-
getSubject
String getSubject()- Returns:
- message subject
-
getTextContent
String getTextContent()- Returns:
- message text content
-
getAttachments
Collection<IIMAPBodyPart> getAttachments()- Returns:
- message attachment
-
getRecipients
Collection<jakarta.mail.Address> getRecipients()- Returns:
- list of addresses
-
getFrom
jakarta.mail.Address getFrom()- Returns:
- sender address
-
getReceivedDate
Date getReceivedDate()- Returns:
- received date
-
getSentDate
Date getSentDate()- Returns:
- sent date
-
setFlag
set flag value- Parameters:
flag
-IIMAPFlag
value
-
-
getFlagValue
return the value associated to a flag- Parameters:
flag
-IIMAPFlag
- Returns:
-