aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/AbstractMessage.java
blob: 7eb2a9afe102fe473f09040c367d0969056635c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.libmailcore;

import java.util.List;

/** Abstract message. */
public class AbstractMessage extends NativeObject {
    /** Header of the message. */
    public native MessageHeader header();
    /** Sets the header of the message. */
    public native void setHeader(MessageHeader header);
    
    /** Returns the MIME part with the given Content-ID. */
    public native AbstractPart partForContentID(String contentID);
    /**
        Returns the MIME part with the given uniqueID.
        @see AbtractPart#uniqueID()
    */
    public native AbstractPart partForUniqueID(String uniqueID);
    /** Returns the list of attachments, not part of the content of the message. */
    public native List<AbstractPart> attachments();
    /** Returns the list of attachments that are shown inline in the content of the message. */
    public native List<AbstractPart> htmlInlineAttachments();
    /** Returns the list of the text parts required to render the message properly. */
    public native List<AbstractPart> requiredPartsForRendering();
}