From fbe3c38655d4eaf0e263ec4cfa7e206174152748 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Wed, 8 Jun 2011 12:30:09 -0700 Subject: [PATCH] Ignore "application/pgp-*" parts in reply. The quoted text doesn't need to mention that the message being replied to had these crufty parts. --- notmuch-reply.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notmuch-reply.c b/notmuch-reply.c index c500862d..8f23cea2 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -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")) { -- 2.43.0