mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Defer downloading body
This commit is contained in:
@@ -90,6 +90,8 @@ public class EntityMessage implements Serializable {
|
||||
public Address[] reply;
|
||||
public String headers;
|
||||
public String subject;
|
||||
@NonNull
|
||||
public Boolean downloaded = false;
|
||||
public Long sent; // compose = null
|
||||
@NonNull
|
||||
public Long received; // compose = stored
|
||||
@@ -135,6 +137,7 @@ public class EntityMessage implements Serializable {
|
||||
this.body = (body == null ? "" : body);
|
||||
out = new BufferedWriter(new FileWriter(file));
|
||||
out.write(this.body);
|
||||
this.downloaded = true;
|
||||
} finally {
|
||||
if (out != null)
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user