Class Mail

    • Constructor Summary

      Constructors 
      Constructor Description
      Mail()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Mail copy()
      Creates an essentially deep copy of this instance.
      String toString()
      Returns a short descriptive information about the mail, useful for logging.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • recipients

        @Nonnull
        public java.util.List<Recipient> recipients
      • receivedFromMtaName

        @Nullable
        public String receivedFromMtaName
        HELO or EHLO name, null if not received
      • receivedFromMtaAddress

        @Nullable
        public java.net.InetAddress receivedFromMtaAddress
        null if the mail was generated locally
      • scheduleDate

        public java.util.Date scheduleDate
        The desired date of sending this mail. Null means immediately.
      • deliveryAttempts

        public int deliveryAttempts
        Count of failed attempts until now.
      • postpones

        public int postpones
        Count of postponings of delivery attempts since the last actually performed attempt. Postponing a delivery means that no remote SMTP hosts were connected, so a postponed delivery attempt must not be considered as a retry.
    • Constructor Detail

      • Mail

        public Mail()
    • Method Detail

      • copy

        public Mail copy()
        Creates an essentially deep copy of this instance. The same mailData object is used, otherwise every other field is a deep copy.
        Returns:
        A deep copy of this mail, except the mailData object, which is used in both the new and in this object.
      • toString

        public String toString()
        Returns a short descriptive information about the mail, useful for logging.
        Overrides:
        toString in class Object