Legacy read receipt request: Return-Receipt-To

pull/214/head
M66B 1 year ago
parent 1f1a2ac86e
commit ab3404f045

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

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

Loading…
Cancel
Save