Revert "Return-Receipt-To is non standard"

This reverts commit f8eec8fe19.
This commit is contained in:
M66B 2021-12-15 19:57:55 +01:00
parent f8eec8fe19
commit 716884ef5d
1 changed files with 5 additions and 0 deletions

View File

@ -402,6 +402,11 @@ public class MessageHelper {
// 1=Delivery receipt
// 2=Read+delivery receipt
// defacto standard
if (receipt_type == 1 || receipt_type == 2) // Delivery receipt
imessage.addHeader("Return-Receipt-To", to);
// https://tools.ietf.org/html/rfc3798
if (receipt_type == 0 || receipt_type == 2) // Read receipt
imessage.addHeader("Disposition-Notification-To", to);