Show flags in headers

This commit is contained in:
M66B 2018-11-24 20:08:54 +01:00
parent 5246629f67
commit c1febcfca6
1 changed files with 4 additions and 1 deletions

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());
}