blob: e86992f81035bd659549bca398a49bab89c365c8 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
package com.libmailcore;
import java.util.List;
/** IMAP messages. */
public class IMAPMessage extends AbstractMessage {
/** Constuctor. */
public IMAPMessage() {
setupNative();
}
/** IMAP sequence number. */
public native long sequenceNumber();
/** Sets the IMAP sequence number. */
public native void setSequenceNumber(long sequenceNumber);
/** UID of the message. */
public native long uid();
/** Sets the UID of the message. */
public native void setUid(long uid);
/** Size of the message. */
public native long size();
/** Sets the size of the message. */
public native void setSize(long size);
/**
Sets flags of the message.
@see com.libmailcore.MessageFlag
*/
public native void setFlags(int flags);
/**
Flags of the message.
@see com.libmailcore.MessageFlag
*/
public native int flags();
/**
Set original message flags.
@see com.libmailcore.MessageFlag
*/
public native void setOriginalFlags(int flags);
/**
Original message flags.
@see com.libmailcore.MessageFlag
*/
public native int originalFlags();
/**
Sets custom flags.
*/
public native void setCustomFlags(List<String> customFlags);
/**
Returns custom flags.
*/
public native List<String> customFlags();
/** Returns the modification sequence value. */
public native long modSeqValue();
/** Sets the modification sequence value. */
public native void setModSeqValue(long uid);
/** Sets the main part of the message. */
public native void setMainPart(AbstractPart mainPart);
/** Returns the main part of the message. */
public native AbstractPart mainPart();
/** Sets the labels of the message in case that's a Gmail server. */
public native void setGmailLabels(List<String> labels);
/** Returns the labels of the message in case that's a Gmail server. */
public native List<String> gmailLabels();
/** Sets the message identifier on Gmail server. */
public native void setGmailMessageID(long msgID);
/** Returns the message identifier on Gmail server. */
public native long gmailMessageID();
/** Sets the message thread identifier on Gmail server. */
public native void setGmailThreadID(long threadID);
/** Returns the message thread identifier on Gmail server. */
public native long gmailThreadID();
/**
Returns the MIME part with the given partID.
@see com.libmailcore.IMAPPart#partID()
@see com.libmailcore.IMAPMessagePart#partID()
@see com.libmailcore.IMAPMultipart#partID()
*/
public native AbstractPart partForPartID(String partID);
/**
Returns the HTML rendering of the message.
@param folder is the folder containing the message.
@param dataCallback callbacks for the IMAP data.
@param htmlCallback callbacks for the HTML template.
*/
public native String htmlRendering(String folder,
HTMLRendererIMAPCallback dataCallback,
HTMLRendererTemplateCallback htmlCallback);
/**
Returns the HTML rendering of the message.
@param folder is the folder containing the message.
@param dataCallback callbacks for the IMAP data.
*/
public String htmlRendering(String folder,
HTMLRendererIMAPCallback dataCallback)
{
return htmlRendering(folder, dataCallback, null);
}
private static final long serialVersionUID = 1L;
private native void setupNative();
}
|