mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Remove Apple signatures
This commit is contained in:
parent
d4d27005ec
commit
a40a70e020
1 changed files with 9 additions and 0 deletions
|
@ -2745,6 +2745,15 @@ public class HtmlHelper {
|
|||
// Outlook: <div id="Signature" data-lt-sig-active="">
|
||||
d.body().select("#Signature").select("[data-lt-sig-active]").remove();
|
||||
|
||||
// Apple: <br id="lineBreakAtBeginningOfSignature"> <div dir="ltr">
|
||||
for (Element br : d.body().select("#lineBreakAtBeginningOfSignature")) {
|
||||
Element next = br.nextElementSibling();
|
||||
if (next != null && "div".equals(next.tagName())) {
|
||||
br.remove();
|
||||
next.remove();
|
||||
}
|
||||
}
|
||||
|
||||
// Usenet style signature
|
||||
d.body().filter(new NodeFilter() {
|
||||
private boolean remove = false;
|
||||
|
|
Loading…
Reference in a new issue