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, 6 insertions, 2 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 88caa67ce8..66e90d1e90 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -1174,7 +1174,11 @@ try_inline_pgp_sig (char *start, MailDisplay *md)
{
CamelCipherValidity *valid = NULL;
CamelPgpContext *context;
- char *end;
+ char *end, *pgp_start;
+
+ pgp_start = strstr (start, "-----BEGIN PGP SIGNED MESSAGE-----");
+ if (!pgp_start)
+ return start;
end = strstr (start, "-----END PGP SIGNATURE-----");
if (!end)
@@ -1204,7 +1208,7 @@ try_inline_pgp_sig (char *start, MailDisplay *md)
camel_exception_free (ex);
}
- mail_text_write (md->html, md->stream, "%.*s", end - start, start);
+ mail_text_write (md->html, md->stream, "%.*s", pgp_start - start, start);
mail_write_authenticity (md, valid);