mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-08 15:36:12 +00:00
Refactoring
This commit is contained in:
parent
613f72e769
commit
ac55dcc31b
1 changed files with 3 additions and 4 deletions
|
@ -713,11 +713,10 @@ public class EntityRule {
|
|||
for (Address a : message.from)
|
||||
from.add(MessageHelper.formatAddresses(new Address[]{a}));
|
||||
|
||||
String text = null;
|
||||
Document doc = null;
|
||||
if (message != null && message.content)
|
||||
try {
|
||||
Document d = JsoupEx.parse(message.getFile(context));
|
||||
text = d.text();
|
||||
doc = JsoupEx.parse(message.getFile(context));
|
||||
} catch (IOException ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
@ -739,7 +738,7 @@ public class EntityRule {
|
|||
.with("to", to)
|
||||
.with("from", from)
|
||||
.with("subject", message == null ? null : Arrays.asList(message.subject))
|
||||
.with("text", Arrays.asList(text));
|
||||
.with("text", doc == null ? null : Arrays.asList(doc.text()));
|
||||
}
|
||||
|
||||
static boolean needsHeaders(Expression expression) {
|
||||
|
|
Loading…
Reference in a new issue