mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Check for attachments in the body only
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user