mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-17 13:22:16 -05:00
Strip off signatures from preview.
This commit is contained in:
parent
7e1e38189d
commit
45328189f3
@ -171,6 +171,8 @@ public abstract class Message implements Part, Body {
|
||||
text = text.substring(0, 8192);
|
||||
}
|
||||
|
||||
// Remove (correctly delimited by '-- \n') signatures
|
||||
text = text.replaceAll("(?ms)^-- [\\r\\n]+.*", "");
|
||||
// try to remove lines of dashes in the preview
|
||||
text = text.replaceAll("(?m)^----.*?$", "");
|
||||
// remove quoted text from the preview
|
||||
|
Loading…
Reference in New Issue
Block a user