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:
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)
|
if (imessage == null)
|
||||||
throw new MessageRemovedException();
|
throw new MessageRemovedException();
|
||||||
|
|
||||||
Enumeration<Header> headers = imessage.getAllHeaders();
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append(imessage.getFlags().toString()).append("\n");
|
||||||
|
|
||||||
|
Enumeration<Header> headers = imessage.getAllHeaders();
|
||||||
while (headers.hasMoreElements()) {
|
while (headers.hasMoreElements()) {
|
||||||
Header header = headers.nextElement();
|
Header header = headers.nextElement();
|
||||||
sb.append(header.getName()).append(": ").append(header.getValue()).append("\n");
|
sb.append(header.getName()).append(": ").append(header.getValue()).append("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
db.message().setMessageHeaders(message.id, sb.toString());
|
db.message().setMessageHeaders(message.id, sb.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue