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:
parent
1f1a2ac86e
commit
ab3404f045
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue