Download small messages on metered connection only, refactoring, improvements

This commit is contained in:
M66B
2018-09-16 10:44:13 +00:00
parent 5d07791b99
commit 265e7fe88f
17 changed files with 173 additions and 111 deletions

View File

@@ -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 {