]> git.notmuchmail.org Git - notmuch/commitdiff
Ignore "application/pgp-*" parts in reply.
authorJameson Graef Rollins <jrollins@finestructure.net>
Wed, 8 Jun 2011 19:30:09 +0000 (12:30 -0700)
committerDavid Bremner <bremner@debian.org>
Thu, 6 Oct 2011 13:13:51 +0000 (10:13 -0300)
The quoted text doesn't need to mention that the message being replied
to had these crufty parts.

notmuch-reply.c

index c500862d36000428284adcec942513911c170e34..8f23cea23129108e7abf3985950f65bb43eed225 100644 (file)
@@ -98,6 +98,11 @@ reply_part_content (GMimeObject *part)
     {
        /* Output nothing, since multipart subparts will be handled individually. */
     }
+    else if (g_mime_content_type_is_type (content_type, "application", "pgp-encrypted") ||
+            g_mime_content_type_is_type (content_type, "application", "pgp-signature"))
+    {
+       /* Ignore PGP/MIME cruft parts */
+    }
     else if (g_mime_content_type_is_type (content_type, "text", "*") &&
        !g_mime_content_type_is_type (content_type, "text", "html"))
     {