Show if receipt was requested, refactoring

This commit is contained in:
M66B
2019-04-17 20:21:44 +02:00
parent 95738a210e
commit 7c2f221282
83 changed files with 2137 additions and 378 deletions

View File

@@ -453,6 +453,11 @@ public class MessageHelper {
return (TextUtils.isEmpty(msgid) ? Long.toString(uid) : msgid);
}
boolean getReceiptRequested() throws MessagingException {
return (imessage.getHeader("Return-Receipt-To") != null ||
imessage.getHeader("Disposition-Notification-To") != null);
}
String getAuthentication() throws MessagingException {
String header = imessage.getHeader("Authentication-Results", "");
return (header == null ? null : header.replaceAll("\\r?\\n", ""));