Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 421ecac9 authored by Jesse Vincent's avatar Jesse Vincent
Browse files

Strip PGP headers from message preview

parent b4d0bd5d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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.?$","");