mirror of https://github.com/M66B/FairEmail.git
Check for attachments in the body only
This commit is contained in:
parent
f2fa4800d7
commit
d30cbb31ab
|
@ -3083,9 +3083,12 @@ public class FragmentCompose extends FragmentBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String plain = HtmlHelper.getText(body);
|
Document d = JsoupEx.parse(body);
|
||||||
|
d.select("div[fairemail=signature]").remove();
|
||||||
|
d.select("div[fairemail=reference]").remove();
|
||||||
|
String text = d.text();
|
||||||
for (String keyword : keywords)
|
for (String keyword : keywords)
|
||||||
if (plain.matches("(?si).*\\b" + Pattern.quote(keyword.trim()) + "\\b.*")) {
|
if (text.matches("(?si).*\\b" + Pattern.quote(keyword.trim()) + "\\b.*")) {
|
||||||
args.putBoolean("remind_attachment", true);
|
args.putBoolean("remind_attachment", true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue