mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Strip PGP headers from message preview
This commit is contained in:
parent
b4d0bd5d5d
commit
421ecac997
@ -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.?$","");
|
||||
|
Loading…
Reference in New Issue
Block a user