1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Show flags in headers

This commit is contained in:
M66B 2018-11-24 20:08:54 +01:00
parent 5246629f67
commit c1febcfca6

View file

@ -1629,12 +1629,15 @@ public class ServiceSynchronize extends LifecycleService {
if (imessage == null)
throw new MessageRemovedException();
Enumeration<Header> headers = imessage.getAllHeaders();
StringBuilder sb = new StringBuilder();
sb.append(imessage.getFlags().toString()).append("\n");
Enumeration<Header> headers = imessage.getAllHeaders();
while (headers.hasMoreElements()) {
Header header = headers.nextElement();
sb.append(header.getName()).append(": ").append(header.getValue()).append("\n");
}
db.message().setMessageHeaders(message.id, sb.toString());
}