Class DeliveryStatus

java.lang.Object
org.eclipse.angus.mail.dsn.Report
org.eclipse.angus.mail.dsn.DeliveryStatus

public class DeliveryStatus extends Report
A message/delivery-status message content, as defined in RFC 3464.
Since:
JavaMail 1.4
  • Field Details

    • messageDSN

      protected InternetHeaders messageDSN
      The DSN fields for the message.
    • recipientDSN

      protected InternetHeaders[] recipientDSN
      The DSN fields for each recipient.
  • Constructor Details

  • Method Details

    • getMessageDSN

      public InternetHeaders getMessageDSN()
      Return all the per-message fields in the delivery status notification. The fields are defined as:
          per-message-fields =
                [ original-envelope-id-field CRLF ]
                reporting-mta-field CRLF
                [ dsn-gateway-field CRLF ]
                [ received-from-mta-field CRLF ]
                [ arrival-date-field CRLF ]
                *( extension-field CRLF )
       
      Returns:
      the per-message DSN fields
    • setMessageDSN

      public void setMessageDSN(InternetHeaders messageDSN)
      Set the per-message fields in the delivery status notification.
      Parameters:
      messageDSN - the per-message DSN fields
    • getRecipientDSNCount

      public int getRecipientDSNCount()
      Return the number of recipients for which we have per-recipient delivery status notification information.
      Returns:
      the number of recipients
    • getRecipientDSN

      public InternetHeaders getRecipientDSN(int n)
      Return the delivery status notification information for the specified recipient.
      Parameters:
      n - the recipient number
      Returns:
      the DSN fields for the recipient
    • addRecipientDSN

      public void addRecipientDSN(InternetHeaders h)
      Add deliver status notification information for another recipient.
      Parameters:
      h - the DSN fields for the recipient
    • writeTo

      public void writeTo(OutputStream os) throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object