mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 13:47:04 +00:00
Check for attachments in the body only
This commit is contained in:
parent
f2fa4800d7
commit
d30cbb31ab
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
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);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue