Added request delivery/read receipt to identity

This commit is contained in:
M66B
2018-12-07 16:48:52 +01:00
parent a59e665714
commit 3f2499698e
7 changed files with 1261 additions and 3 deletions

View File

@@ -1661,6 +1661,12 @@ public class ServiceSynchronize extends LifecycleService {
if (ident.replyto != null)
imessage.setReplyTo(new Address[]{new InternetAddress(ident.replyto)});
if (ident.delivery_receipt)
imessage.addHeader("Return-Receipt-To", ident.replyto == null ? ident.email : ident.replyto);
if (ident.read_receipt)
imessage.addHeader("Disposition-Notification-To", ident.replyto == null ? ident.email : ident.replyto);
// Create transport
// TODO: cache transport?
Transport itransport = isession.getTransport(ident.starttls ? "smtp" : "smtps");