1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Strip off signatures from preview.

This commit is contained in:
Danny Baumann 2013-01-07 10:39:08 +01:00
parent 7e1e38189d
commit 45328189f3

View File

@ -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