[PATCH 4/4] Ignore "application/pgp-*" parts in reply.
Jameson Graef Rollins
jrollins at finestructure.net
Wed Jun 8 12:30:09 PDT 2011
The quoted text doesn't need to mention that the message being replied
to had these crufty parts.
---
notmuch-reply.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/notmuch-reply.c b/notmuch-reply.c
index 7a76ba3..0eb295e 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"))
{
--
1.7.5.3
More information about the notmuch
mailing list