mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Set correlation ID on cross account move
This commit is contained in:
parent
a33c66803b
commit
7971c4ee1e
1 changed files with 2 additions and 2 deletions
|
@ -957,6 +957,7 @@ class Core {
|
||||||
try (InputStream is = new BufferedInputStream(new FileInputStream(file))) {
|
try (InputStream is = new BufferedInputStream(new FileInputStream(file))) {
|
||||||
imessage = new MimeMessageEx(isession, is, message.msgid);
|
imessage = new MimeMessageEx(isession, is, message.msgid);
|
||||||
}
|
}
|
||||||
|
imessage.addHeader(MessageHelper.HEADER_CORRELATION_ID, message.msgid);
|
||||||
imessage.saveChanges();
|
imessage.saveChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -976,12 +977,11 @@ class Core {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle auto read
|
// Handle auto read
|
||||||
if (flags.contains(Flags.Flag.SEEN)) {
|
if (flags.contains(Flags.Flag.SEEN))
|
||||||
if (autoread && !imessage.isSet(Flags.Flag.SEEN)) {
|
if (autoread && !imessage.isSet(Flags.Flag.SEEN)) {
|
||||||
Log.i(folder.name + " autoread");
|
Log.i(folder.name + " autoread");
|
||||||
imessage.setFlag(Flags.Flag.SEEN, true);
|
imessage.setFlag(Flags.Flag.SEEN, true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Handle draft
|
// Handle draft
|
||||||
if (flags.contains(Flags.Flag.DRAFT))
|
if (flags.contains(Flags.Flag.DRAFT))
|
||||||
|
|
Loading…
Reference in a new issue