Modifier and Type | Method and Description |
---|---|
abstract MailPart |
MailServletInterface.getMessageAttachment(java.lang.String folder,
java.lang.String msgUID,
java.lang.String attachmentPosition,
boolean displayVersion)
Returns a message's attachment located at given
attachmentPosition wrapped by an instance of
JSONMessageAttachmentObject for a convenient access to its attributes and content. |
abstract MailPart |
MailServletInterface.getMessageImage(java.lang.String folder,
java.lang.String msgUID,
java.lang.String cid)
Returns a message's inline image located identified with given
cid wrapped by an instance of
JSONMessageAttachmentObject for a convenient access to its attributes and content. |
Modifier and Type | Method and Description |
---|---|
MailPart |
MailMessageStorage.getAttachment(java.lang.String folder,
java.lang.String mailId,
java.lang.String sequenceId) |
MailPart |
IMailMessageStorage.getAttachment(java.lang.String folder,
java.lang.String mailId,
java.lang.String sequenceId)
A convenience method that fetches the mail message's attachment identified through given
sequenceId . |
MailPart |
MailMessageStorage.getImageAttachment(java.lang.String folder,
java.lang.String mailId,
java.lang.String contentId) |
MailPart |
IMailMessageStorage.getImageAttachment(java.lang.String folder,
java.lang.String mailId,
java.lang.String contentId)
A convenience method that fetches the mail message's image attachment identified by its
Content-Id header given through
argument contentId . |
Modifier and Type | Method and Description |
---|---|
MailPart |
MailMessageStorageLong.getAttachment(java.lang.String folder,
java.lang.String mailId,
java.lang.String sequenceId) |
MailPart |
MailMessageStorageLong.getAttachmentLong(java.lang.String folder,
long mailId,
java.lang.String sequenceId)
A convenience method that fetches the mail message's attachment identified through given
sequenceId . |
MailPart |
MailMessageStorageLong.getImageAttachment(java.lang.String folder,
java.lang.String mailId,
java.lang.String contentId) |
MailPart |
MailMessageStorageLong.getImageAttachmentLong(java.lang.String folder,
long mailId,
java.lang.String contentId)
A convenience method that fetches the mail message's image attachment identified by its
Content-Id header given through
argument contentId . |
Modifier and Type | Method and Description |
---|---|
MailPart |
AttachmentToken.getAttachment()
Gets the associated attachment.
|
Modifier and Type | Class and Description |
---|---|
class |
CompositeMailMessage
CompositeMailMessage - Extends the common MailMessage class by the possibility to add extra parts to an existing
MailMessage instance whose MIME type is multipart/* |
class |
ContentAwareMailMessage
ContentAwareMailMessage - Enhances MailMessage by ContentAwareMailMessage.getPrimaryContent() method. |
class |
DraftMailMessage
DraftMailMessage - The Draft mail message with special handling for DraftMailMessage.getReceivedDate() and DraftMailMessage.getSentDate() . |
class |
IDMailMessage
|
class |
MailMessage
|
class |
ThreadSortMailMessage
ThreadSortMailMessage - Extends MailMessage by capability to carry child messages. |
class |
UUEncodedAttachmentMailPart
UUEncodedAttachmentMailPart - Subclass of MailPart designed for designed for uuencoded mail parts. |
Modifier and Type | Method and Description |
---|---|
MailPart |
UUEncodedAttachmentMailPart.getEnclosedMailPart(int index) |
MailPart |
ThreadSortMailMessage.getEnclosedMailPart(int index) |
abstract MailPart |
MailPart.getEnclosedMailPart(int index)
Gets the mail part located at given index.
|
MailPart |
IDMailMessage.getEnclosedMailPart(int index) |
MailPart |
DraftMailMessage.getEnclosedMailPart(int index) |
MailPart |
ContentAwareMailMessage.getEnclosedMailPart(int index) |
MailPart |
CompositeMailMessage.getEnclosedMailPart(int index) |
MailPart |
CompositeMailMessage.removeAdditionalParts(int index)
Removes the mail part at the specified position.
|
Modifier and Type | Method and Description |
---|---|
void |
CompositeMailMessage.addAdditionalParts(MailPart mailPart)
Appends the specified mail part
|
Modifier and Type | Class and Description |
---|---|
class |
ComposedMailMessage
ComposedMailMessage - Subclass of MailMessage designed for composing a mail. |
class |
ContentAwareComposedMailMessage
|
class |
DataMailPart
|
class |
InfostoreDocumentMailPart
InfostoreDocumentMailPart - A MailPart implementation that provides the input stream to an infostore document |
class |
ReferencedMailPart
ReferencedMailPart - A MailPart implementation that points to a referenced part in original mail. |
class |
TextBodyMailPart
TextBodyMailPart - Designed to keep a mail's (text) body while offering a suitable implementation of MailPart |
class |
UploadFileMailPart
UploadFileMailPart - A MailPart implementation that keeps a reference to a temporary uploaded file that shall be added as
an attachment later |
Modifier and Type | Method and Description |
---|---|
MailPart |
UploadFileMailPart.getEnclosedMailPart(int index) |
MailPart |
TextBodyMailPart.getEnclosedMailPart(int index) |
MailPart |
ReferencedMailPart.getEnclosedMailPart(int index) |
MailPart |
InfostoreDocumentMailPart.getEnclosedMailPart(int index) |
MailPart |
DataMailPart.getEnclosedMailPart(int index) |
MailPart |
ContentAwareComposedMailMessage.getEnclosedMailPart(int index) |
abstract MailPart |
ComposedMailMessage.getEnclosedMailPart(int index)
Gets this composed mail's part located at given index.
|
MailPart |
ContentAwareComposedMailMessage.removeEnclosedPart(int index) |
abstract MailPart |
ComposedMailMessage.removeEnclosedPart(int index)
Removes the enclosed part at the specified position.
|
Modifier and Type | Method and Description |
---|---|
void |
ContentAwareComposedMailMessage.addEnclosedPart(MailPart part) |
abstract void |
ComposedMailMessage.addEnclosedPart(MailPart part)
Adds an instance of
MailPart to enclosed parts |
Constructor and Description |
---|
ReconnectingInputStreamClosure(MailPart mailPart,
java.lang.String folderPath,
java.lang.String uid,
java.lang.String id,
boolean image,
com.openexchange.tools.session.ServerSession session) |
Modifier and Type | Method and Description |
---|---|
void |
PublishAttachmentHandler.addAttachment(MailPart attachment) |
void |
IAttachmentHandler.addAttachment(MailPart attachment)
Adds specified attachment.
|
void |
AbortAttachmentHandler.addAttachment(MailPart attachment) |
Modifier and Type | Method and Description |
---|---|
boolean |
IcsMimeFilter.ignorable(java.lang.String contentType,
MailPart bodyPart) |
boolean |
MimeFilter.ignorable(java.lang.String contentType,
MailPart bodyPart)
Invoked to detect if passed body part should be ignored.
|
Modifier and Type | Method and Description |
---|---|
static MailPart |
MimeMessageConverter.convertPart(byte[] asciiBytes)
Creates a MIME mail part object from given raw bytes.
|
static MailPart |
MimeMessageConverter.convertPart(javax.mail.Part part)
Creates a MIME mail part object from given MIME part.
|
static MailPart |
MimeMessageConverter.convertPart(javax.mail.Part part,
boolean enforeSize)
Creates a MIME mail part object from given MIME part.
|
Modifier and Type | Method and Description |
---|---|
static javax.mail.Part |
MimeMessageConverter.convertMailPart(MailPart mailPart)
Creates a
Part object from given instance of MailPart . |
static java.util.Date |
MimeMessageConverter.getSentDate(MailPart part)
Returns the value of the RFC 822 "Date" field.
|
Modifier and Type | Class and Description |
---|---|
class |
MimeFileMailPart
MimeFileMailPart - A MailPart implementation that keeps a reference to a temporary created file that shall be added as an
attachment later. |
class |
MimeFileStoreMailPart
MimeFileStoreMailPart - A MailPart implementation that keeps a reference to a temporary uploaded file that shall be added
as an attachment later |
class |
MimeMailMessage
MimeMailMessage - A subclass of MailMessage to support MIME messages (as per RFC822). |
class |
MimeMailPart
MimeMailPart - Represents a MIME part as per RFC 822. |
class |
MIMEMultipartMailPart
|
class |
NestedMessageMailPart
NestedMessageMailPart - Represents a mail part holding a nested message. |
Modifier and Type | Method and Description |
---|---|
MailPart |
NestedMessageMailPart.getEnclosedMailPart(int index) |
MailPart |
MIMEMultipartMailPart.getEnclosedMailPart(int index) |
MailPart |
MimeMailPart.getEnclosedMailPart(int index) |
MailPart |
MimeMailMessage.getEnclosedMailPart(int index) |
MailPart |
MimeFileStoreMailPart.getEnclosedMailPart(int index) |
MailPart |
MimeFileMailPart.getEnclosedMailPart(int index) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
MimeMessageUtility.getCharset(MailPart mailPart,
ContentType contentType)
Gets the appropriate charset encoding for specified mail part.
|
static java.lang.String |
MimeMessageUtility.getFileName(MailPart mailPart)
Get the decoded filename associated with specified mail part.
|
static java.lang.String |
MimeMessageUtility.getRealFilename(MailPart part)
Determines specified part's real filename if any available.
|
static java.io.InputStream |
MimeMessageUtility.getStreamFromMailPart(MailPart part)
Gets the stream of specified part's raw data.
|
static boolean |
MimeMessageUtility.hasAttachments(MailPart mp,
java.lang.String subtype)
Checks if given multipart contains (file) attachments
|
static java.lang.String |
MimeMessageUtility.readContent(MailPart mailPart,
ContentType contentType)
Reads the textual content from specified part.
|
static void |
MimeMessageUtility.writeHeaders(MailPart p,
java.io.OutputStream os)
Writes specified part's headers to given output stream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MailMessageHandler.handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id)
Handle an attachment part (any non-inline parts and file attachments)
|
boolean |
MailMessageHandler.handleImagePart(MailPart part,
java.lang.String imageCID,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id)
Handle an image part (
image/* ) |
boolean |
MailMessageHandler.handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id)
Handle a multipart (
multipart/* ) |
boolean |
MailMessageHandler.handleMultipartEnd(MailPart mp,
java.lang.String id)
Handle end of a multipart (
multipart/* ) |
boolean |
MailMessageHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id)
Handle a nested message (
message/rfc822 )
Get the message via:
MailMessage nestedMail = (MailMessage) mailPart.getContent();
|
boolean |
MailMessageHandler.handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id)
Handle special parts.
|
Modifier and Type | Method and Description |
---|---|
MailPart |
ImageMessageHandler.getImagePart() |
MailPart |
MailPartHandler.getMailPart()
Gets the identified mail part or
null if none found matching given sequence ID |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,MailPart> |
InlineContentHandler.getInlineContents()
Gets the found inline contents corresponding to given content IDs.
|
java.util.Map<java.lang.String,MailPart> |
MultipleMailPartHandler.getMailParts()
Gets the identified mail parts matching given sequence IDs
|
java.util.List<MailPart> |
NonInlineForwardPartHandler.getNonInlineParts() |
Modifier and Type | Method and Description |
---|---|
boolean |
RawJSONMessageHandler.handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
NonInlineForwardPartHandler.handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
MultipleMailPartHandler.handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
MailPartHandler.handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
JsonMessageHandler.handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
InlineContentHandler.handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
ImageMessageHandler.handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
DumperMessageHandler.handleAttachment(MailPart part,
boolean isInline,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
RawJSONMessageHandler.handleImagePart(MailPart part,
java.lang.String imageCID,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id) |
boolean |
NonInlineForwardPartHandler.handleImagePart(MailPart part,
java.lang.String imageCID,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id) |
boolean |
MultipleMailPartHandler.handleImagePart(MailPart part,
java.lang.String imageCID,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id) |
boolean |
MailPartHandler.handleImagePart(MailPart part,
java.lang.String imageCID,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id) |
boolean |
JsonMessageHandler.handleImagePart(MailPart part,
java.lang.String imageCID,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id) |
boolean |
InlineContentHandler.handleImagePart(MailPart part,
java.lang.String imageCIDArg,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id) |
boolean |
ImageMessageHandler.handleImagePart(MailPart part,
java.lang.String imageCID,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id) |
boolean |
DumperMessageHandler.handleImagePart(MailPart part,
java.lang.String imageCID,
java.lang.String baseContentType,
boolean isInline,
java.lang.String fileName,
java.lang.String id) |
boolean |
RawJSONMessageHandler.handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id) |
boolean |
NonInlineForwardPartHandler.handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id) |
boolean |
MultipleMailPartHandler.handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id) |
boolean |
MailPartHandler.handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id) |
boolean |
JsonMessageHandler.handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id) |
boolean |
InlineContentHandler.handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id) |
boolean |
ImageMessageHandler.handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id) |
boolean |
DumperMessageHandler.handleMultipart(MailPart mp,
int bodyPartCount,
java.lang.String id) |
boolean |
RawJSONMessageHandler.handleMultipartEnd(MailPart mp,
java.lang.String id) |
boolean |
NonInlineForwardPartHandler.handleMultipartEnd(MailPart mp,
java.lang.String id) |
boolean |
MultipleMailPartHandler.handleMultipartEnd(MailPart mp,
java.lang.String id) |
boolean |
MailPartHandler.handleMultipartEnd(MailPart mp,
java.lang.String id) |
boolean |
JsonMessageHandler.handleMultipartEnd(MailPart mp,
java.lang.String id) |
boolean |
InlineContentHandler.handleMultipartEnd(MailPart mp,
java.lang.String id) |
boolean |
ImageMessageHandler.handleMultipartEnd(MailPart mp,
java.lang.String id) |
boolean |
DumperMessageHandler.handleMultipartEnd(MailPart mp,
java.lang.String id) |
boolean |
RawJSONMessageHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id) |
boolean |
NonInlineForwardPartHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id) |
boolean |
MultipleMailPartHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id) |
boolean |
MailPartHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id) |
boolean |
JsonMessageHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id) |
boolean |
InlineContentHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id) |
boolean |
ImageMessageHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id) |
boolean |
DumperMessageHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id) |
boolean |
RawJSONMessageHandler.handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
NonInlineForwardPartHandler.handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
MultipleMailPartHandler.handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
MailPartHandler.handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
JsonMessageHandler.handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
InlineContentHandler.handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
ImageMessageHandler.handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
boolean |
DumperMessageHandler.handleSpecialPart(MailPart part,
java.lang.String baseContentType,
java.lang.String fileName,
java.lang.String id) |
Constructor and Description |
---|
NonInlineForwardPartHandler(java.util.List<MailPart> nonInlineParts)
Initializes a new
NonInlineForwardPartHandler |
Modifier and Type | Method and Description |
---|---|
abstract MailPart |
PartModifier.modifyPart(MailPart mailPart)
Performs possible modifications on specified mail part
|
MailPart |
DummyPartModifier.modifyPart(MailPart mailPart) |
Modifier and Type | Method and Description |
---|---|
abstract MailPart |
PartModifier.modifyPart(MailPart mailPart)
Performs possible modifications on specified mail part
|
MailPart |
DummyPartModifier.modifyPart(MailPart mailPart) |
Modifier and Type | Method and Description |
---|---|
boolean |
StructureHandler.handleAttachment(MailPart part,
java.lang.String id) |
boolean |
StructureHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id) |
boolean |
StructureHandler.handleSMIMEBodyText(MailPart part) |
Modifier and Type | Method and Description |
---|---|
boolean |
MIMEStructureHandler.handleAttachment(MailPart part,
java.lang.String id) |
boolean |
MIMEStructureHandler.handleNestedMessage(MailPart mailPart,
java.lang.String id) |
boolean |
MIMEStructureHandler.handleSMIMEBodyText(MailPart part) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
TextFinder.getText(MailPart p)
Gets the primary text content of the specified part.
|
Modifier and Type | Method and Description |
---|---|
abstract ReferencedMailPart |
TransportProvider.getNewReferencedPart(MailPart referencedPart,
com.openexchange.session.Session session)
Gets a new instance of
ReferencedMailPart |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
MessageUtility.checkCharset(MailPart p,
ContentType ct)
Gets a valid charset-encoding for specified textual part; meaning its content type matches
text/* . |
static java.lang.String |
MessageUtility.readMailPart(MailPart mailPart,
java.lang.String charset)
Reads the stream content from given mail part.
|