mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Interpret Return-Receipt-To as read receipt request
This commit is contained in:
@@ -545,6 +545,7 @@ public class MessageHelper {
|
||||
}
|
||||
|
||||
// https://tools.ietf.org/html/rfc3798
|
||||
// https://en.wikipedia.org/wiki/Return_receipt
|
||||
if (receipt_type == 0 || receipt_type == 2) {
|
||||
// Read receipt
|
||||
imessage.addHeader("Disposition-Notification-To", to);
|
||||
@@ -2094,6 +2095,8 @@ public class MessageHelper {
|
||||
Address[] receipt = getAddressHeader("Disposition-Notification-To");
|
||||
if (receipt == null || receipt.length == 0)
|
||||
receipt = getAddressHeader("Read-Receipt-To");
|
||||
if (receipt == null || receipt.length == 0)
|
||||
receipt = getAddressHeader("Return-Receipt-To");
|
||||
if (receipt == null || receipt.length == 0)
|
||||
receipt = getAddressHeader("X-Confirm-Reading-To");
|
||||
return receipt;
|
||||
|
||||
Reference in New Issue
Block a user