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

Strip PGP headers from message preview

This commit is contained in:
Jesse Vincent 2010-06-06 22:28:29 +00:00
parent b4d0bd5d5d
commit 421ecac997

View File

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