Interface RecipientDsnFields.Builder

    • Method Detail

      • finalRecipient

        RecipientDsnFields.Builder finalRecipient​(String finalRecipient)

        The email address that the message was ultimately delivered to. This corresponds to the Final-Recipient in the DSN. If not specified, FinalRecipient is set to the Recipient specified in the BouncedRecipientInfo structure. Either FinalRecipient or the recipient in BouncedRecipientInfo must be a recipient of the original bounced message.

        Do not prepend the FinalRecipient email address with rfc 822;, as described in RFC 3798.

        Parameters:
        finalRecipient - The email address that the message was ultimately delivered to. This corresponds to the Final-Recipient in the DSN. If not specified, FinalRecipient is set to the Recipient specified in the BouncedRecipientInfo structure. Either FinalRecipient or the recipient in BouncedRecipientInfo must be a recipient of the original bounced message.

        Do not prepend the FinalRecipient email address with rfc 822;, as described in RFC 3798.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • action

        RecipientDsnFields.Builder action​(String action)

        The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.

        Parameters:
        action - The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DsnAction, DsnAction
      • action

        RecipientDsnFields.Builder action​(DsnAction action)

        The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.

        Parameters:
        action - The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DsnAction, DsnAction
      • remoteMta

        RecipientDsnFields.Builder remoteMta​(String remoteMta)

        The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). This parameter typically applies only to propagating synchronous bounces.

        Parameters:
        remoteMta - The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). This parameter typically applies only to propagating synchronous bounces.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        RecipientDsnFields.Builder status​(String status)

        The status code that indicates what went wrong. This is required by RFC 3464.

        Parameters:
        status - The status code that indicates what went wrong. This is required by RFC 3464.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • diagnosticCode

        RecipientDsnFields.Builder diagnosticCode​(String diagnosticCode)

        An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.

        Parameters:
        diagnosticCode - An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastAttemptDate

        RecipientDsnFields.Builder lastAttemptDate​(Instant lastAttemptDate)

        The time the final delivery attempt was made, in RFC 822 date-time format.

        Parameters:
        lastAttemptDate - The time the final delivery attempt was made, in RFC 822 date-time format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • extensionFields

        RecipientDsnFields.Builder extensionFields​(Collection<ExtensionField> extensionFields)

        Additional X-headers to include in the DSN.

        Parameters:
        extensionFields - Additional X-headers to include in the DSN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • extensionFields

        RecipientDsnFields.Builder extensionFields​(ExtensionField... extensionFields)

        Additional X-headers to include in the DSN.

        Parameters:
        extensionFields - Additional X-headers to include in the DSN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.