]> git.donarmstrong.com Git - remote_mail.git/commitdiff
* Add back in the pgp mime conversion; a supring number of people still aren't using it
authorDon Armstrong <don@donarmstrong.com>
Wed, 11 Jun 2008 22:49:27 +0000 (22:49 +0000)
committerDon Armstrong <don@donarmstrong.com>
Wed, 11 Jun 2008 22:49:27 +0000 (22:49 +0000)
.procmailrc

index ee9f6bd2919ab42b9ac51bf9a828468a52522fe8..3a0c93a5bbac0df2176ffc5b4c94a7b49362b25d 100644 (file)
@@ -72,6 +72,24 @@ $HOME/Mail/delay
 * ^TO \/don\+delay\+[^@]+
 |/home/don/bin/delay_mail --mailto don@donarmstrong.com --enqueue --email --delay $MATCH
 
+# 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"
+}
 
 :0:
 * ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS)