Skip to content

Failed MDNs - failed vs error #265

Description

@malcomm

I just ran into something where our failed MDNs have this in them:

Disposition: automatic-action/MDN-sent-automatically;error

The big thing is that I’m pretty sure that should say failed instead of error.

I’m going to go ahead and just assume this to be true. I created a simple unit test that tests the basic core of what we are doing to generate the MDNs:

@Test
public void testFailedMDN() {
    Notification notification = new Notification(NotificationType.Error);
    notification.setExplanation("Your message encountered an error and failed delivery to the target system. Please contact your system administrator.");
    System.out.println(notification);
   
    String dispositionStatus = NotificationHelper.asString(NotificationType.Error);
    System.out.println("dispositionStatus: " + dispositionStatus);
}

The output of this is:

-------------------------------
------=_Part_1_388706379.1481159551117
 
Your message encountered an error and failed delivery to the target system. Please contact your system administrator.
------=_Part_1_388706379.1481159551117
content-type: message/disposition-notification
 
Disposition: automatic-action/MDN-sent-automatically;error
 
------=_Part_1_388706379.1481159551117--
 
asString: error
 
-------------------------------

Any help on this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions