1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-06 03:33:07 +00:00

Legacy read receipt request: Return-Receipt-To

This commit is contained in:
M66B 2023-09-08 18:38:05 +02:00
parent 1f1a2ac86e
commit ab3404f045
2 changed files with 3 additions and 1 deletions

View file

@ -1337,7 +1337,7 @@ public class EmailService implements AutoCloseable {
" reuse=" + reuse +
" delay=" + delay);
if (keepAlive) {
if (keepAlive || BuildConfig.DEBUG) {
Log.e("Socket keep-alive=" + keepAlive);
socket.setKeepAlive(false); // sets SOL_SOCKET/SO_KEEPALIVE
}

View file

@ -550,6 +550,8 @@ public class MessageHelper {
// Read receipt
imessage.addHeader("Disposition-Notification-To", to);
imessage.addHeader("Read-Receipt-To", to);
if (receipt_legacy)
imessage.addHeader("Return-Receipt-To", to);
imessage.addHeader("X-Confirm-Reading-To", to);
}
}