+# Convert old-style PGP messages to MIME
+:0
+* !^Content-Type: multipart/
+* !^Content-Type: application/pgp
+{
+ :0 fBw
+ * ^-----BEGIN PGP MESSAGE-----
+ * ^-----END PGP MESSAGE-----
+ | formail \
+ -i "Content-Type: application/pgp; format=text; x-action=encrypt"
+
+ :0 fBw
+ * ^-----BEGIN PGP SIGNED MESSAGE-----
+ * ^-----BEGIN PGP SIGNATURE-----
+ * ^-----END PGP SIGNATURE-----
+ | formail \
+ -i "Content-Type: application/pgp; format=text; x-action=sign"
+}