mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Show flags in headers
This commit is contained in:
parent
5246629f67
commit
c1febcfca6
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue