aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r--mail/mail-format.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index b63b9a8d3d..1576c261e4 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -1199,6 +1199,7 @@ static gboolean
handle_multipart_encrypted (CamelMimePart *part, const char *mime_type,
MailDisplay *md)
{
+#ifdef PGP_PROGRAM
CamelDataWrapper *wrapper;
CamelMimePart *mime_part;
CamelException ex;
@@ -1223,6 +1224,9 @@ handle_multipart_encrypted (CamelMimePart *part, const char *mime_type,
return retcode;
}
+#else
+ return handle_multipart_mixed (part, mime_type, md);
+#endif
}
/* FIXME: So this function is mostly just a place-holder for now */
@@ -1230,6 +1234,7 @@ static gboolean
handle_multipart_signed (CamelMimePart *part, const char *mime_type,
MailDisplay *md)
{
+#ifdef PGP_PROGRAM
CamelDataWrapper *wrapper;
CamelException ex;
gboolean valid;
@@ -1245,6 +1250,9 @@ handle_multipart_signed (CamelMimePart *part, const char *mime_type,
valid = pgp_mime_part_verify (part, &ex);
return valid;
+#else
+ return handle_multipart_mixed (part, mime_type, md);
+#endif
}
/* As seen in RFC 2387! */