1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Remove URLs from message previews. Suggested by Kevin Falcone

This commit is contained in:
Jesse Vincent 2010-07-24 02:09:12 +00:00
parent 08679b68ee
commit 766a115155

View File

@ -2297,6 +2297,7 @@ public class LocalStore extends Store implements Serializable
}
text = text.replaceAll("(?ms)^-----BEGIN PGP SIGNED MESSAGE-----.(Hash:\\s*?.*?$)?","");
text = text.replaceAll("https?://\\S+","...");
text = text.replaceAll("^.*\\w.*:","");
text = text.replaceAll("(?m)^>.*$","");
text = text.replaceAll("^On .*wrote.?$","");