mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Download small messages on metered connection only, refactoring, improvements
This commit is contained in:
@@ -90,8 +90,9 @@ public class EntityMessage implements Serializable {
|
||||
public Address[] reply;
|
||||
public String headers;
|
||||
public String subject;
|
||||
public Integer size;
|
||||
@NonNull
|
||||
public Boolean downloaded = false;
|
||||
public Boolean content = false;
|
||||
public Long sent; // compose = null
|
||||
@NonNull
|
||||
public Long received; // compose = stored
|
||||
@@ -137,7 +138,6 @@ 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