mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Show if receipt was requested, refactoring
This commit is contained in:
@@ -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", ""));
|
||||
|
||||
Reference in New Issue
Block a user