mirror of https://github.com/M66B/FairEmail.git
Show flags in headers
This commit is contained in:
parent
5246629f67
commit
c1febcfca6
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue