public class Mail
extends Object
Modifier and Type | Field and Description |
---|---|
java.util.Date |
arrivalDate
If the message was generated locally then this time should be the date of
creation.
|
int |
deliveryAttempts
Count of failed attempts until now.
|
ReversePath |
from |
MailData |
mailData |
int |
postpones
Count of postponings of delivery attempts since the last actually
performed attempt.
|
java.net.InetAddress |
receivedFromMtaAddress
null if the mail was generated locally
|
String |
receivedFromMtaName
HELO or EHLO name, null if not received
|
java.util.List<Recipient> |
recipients |
java.util.Date |
scheduleDate
The desired date of sending this mail.
|
Constructor and Description |
---|
Mail() |
Modifier and Type | Method and Description |
---|---|
Mail |
copy()
Creates an essentially deep copy of this instance.
|
String |
toString()
Returns a short descriptive information about the mail, useful for
logging.
|
@Nonnull public ReversePath from
@Nonnull public java.util.List<Recipient> recipients
public MailData mailData
@Nonnull public java.util.Date arrivalDate
@Nullable public String receivedFromMtaName
@Nullable public java.net.InetAddress receivedFromMtaAddress
public java.util.Date scheduleDate
public int deliveryAttempts
public int postpones
public Mail copy()
mailData
object is used, otherwise every other field is a deep
copy.mailData
object,
which is used in both the new and in this object.public String toString()
toString
in class Object