S/MIME: decode protected header

pull/209/head
M66B 2 years ago
parent ac4943f952
commit 1d435368ba

@ -8974,6 +8974,7 @@ public class FragmentMessages extends FragmentBase
MimeMessage imessage = new MimeMessage(isession, is);
MessageHelper helper = new MessageHelper(imessage, context);
MessageHelper.MessageParts parts = helper.getMessageParts();
String protect_subject = parts.getProtectedSubject();
// Write decrypted body
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
@ -8999,6 +9000,9 @@ public class FragmentMessages extends FragmentBase
try {
db.beginTransaction();
if (protect_subject != null)
db.message().setMessageSubject(message.id, protect_subject);
db.message().setMessageContent(message.id,
true,
message.language,

Loading…
Cancel
Save