public class MailHeader extends Header implements java.lang.Comparable<MailHeader>
Modifier and Type | Field and Description |
---|---|
boolean |
bConfirmation
If this is a read confirmation of a previously sent mail.
|
boolean |
bEstimatedHasAttachments
This only an assumption about the attachment status.
|
boolean |
bOld
True if this mail was displayed before, false otherwise; set by higher-level code.
|
boolean |
bRequestRcpt
Whether or not to request read confirmation from the recipients of this mail
|
java.util.HashMap<java.lang.String,java.lang.String> |
hmHeaders
Supplemental headers to be added when sending the mail
|
int |
iFolder
Folder ID; set by higher-level code
|
int |
iMailID
Unique mail ID; set by higher-level code
|
int |
iMailSize
Total size of this mail; set by higher-level code.
|
int |
iPriority
Message priority.
|
int |
iStatus
Mail status; set by higher-level code (0=new, 1=read)
|
MailDate |
mdDate
The Date field of the header
|
java.lang.String |
sBCC
Blind carbon copies
|
java.lang.String |
sCC
Carbon copies of this mail
|
java.lang.String |
sConfirmation
The text to send when confirming the read of an email
|
java.lang.String |
sContentType
Content type
|
java.lang.String |
sEncoding
Encoding used to embed the text / attachments / ...
|
java.lang.String |
sFrom
Sender of the mail
|
java.lang.String |
sMessageID
Message ID, used to thread emails
|
java.lang.String |
sNotification
Where to send the notification that this mail was read
|
java.lang.String |
sOrigMessageID
The original message ID that is confirmed to be read
|
java.lang.String |
sReplyTo
Where to ask the receiver to send the replies to
|
java.lang.String |
sReturnPath
Where to ask the servers on the way to report errors in case that the delivery is not possible
|
java.lang.String |
sShortFrom
Just the name part of the sender
|
java.lang.String |
sSubject
Mail subject
|
java.lang.String |
sTo
Destination(s) for this mail
|
mHeaders, sBoundary, sCompleteHeader
Constructor and Description |
---|
MailHeader()
Empty constructor, initialize fields to default values.
|
MailHeader(java.lang.String sHeader)
Initialize the fields based on this actual header.
|
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String sKey,
java.lang.String sValue)
Add an extra header to be put in the mail that is sent.
|
int |
compareTo(MailHeader o)
Default sorting methods for the mails: by the date
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString()
A reconstruction of the headers.
|
getOriginalHeader, getValue, main
public java.lang.String sFrom
public java.lang.String sShortFrom
public java.lang.String sTo
public java.lang.String sCC
public java.lang.String sBCC
public java.lang.String sSubject
public java.lang.String sContentType
public java.lang.String sReplyTo
public java.lang.String sReturnPath
public java.lang.String sEncoding
public java.lang.String sNotification
public java.lang.String sMessageID
public MailDate mdDate
public int iMailID
public int iStatus
public boolean bOld
public int iFolder
public int iMailSize
public int iPriority
public boolean bEstimatedHasAttachments
public boolean bConfirmation
public java.lang.String sConfirmation
public java.lang.String sOrigMessageID
public boolean bRequestRcpt
public java.util.HashMap<java.lang.String,java.lang.String> hmHeaders
public MailHeader()
public MailHeader(java.lang.String sHeader)
sHeader
- original mail headerpublic void addHeader(java.lang.String sKey, java.lang.String sValue)
sKey
- header namesValue
- value for this keypublic java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(MailHeader o)
compareTo
in interface java.lang.Comparable<MailHeader>
o
- object to compare topublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object