microtan / nhin-d

Automatically exported from code.google.com/p/nhin-d
0 stars 0 forks source link

"Message Vanished" notification for all the receipts if the email is failed to deliver to some of the receipts. And there are many duplication notifications. #251

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Create a new email with two receipts. The two receipts are in the same 
domain. Receipt A is valid and receipt B is invalid.

2.Send the email

What is the expected output? What do you see instead?

The expected output is: A received notification comes in for receipt A and a 
"Message Vanished" notification comes in for receipt B.

What I saw is: .A received notification comes in for receipt A. A "Message 
Vanished" notification comes in for both receipt A and B. And then tons of 
"Message Vanished" notifications come in for receipt B. And we should not add 
"Message Vanished" notification for receipt A since the email has been 
delivered successfully.

What version of the product are you using? On what operating system?
I build direct-msg-monitor-1.2-SNAPSHOT.jar on mac.

Please provide any additional information below.

The notifications are added in addNotificationForMonitorGeneratedDSN. Since the 
msgId is different each time, so we add the notification each time we get a DSN.

final String addMsgId = origMsgId.getDetailValue() + "\t" + 
msgId.getDetailValue();
dao.addNotification(addMsgId, normalizedFinalRecip);

Original issue reported on code.google.com by helensun...@gmail.com on 17 Dec 2014 at 12:52