aboutsummaryrefslogtreecommitdiff
path: root/src/mimeview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mimeview.c')
-rw-r--r--src/mimeview.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mimeview.c b/src/mimeview.c
index 1e3014d2..5a365f76 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -786,8 +786,7 @@ static void mimeview_selection_changed(GtkTreeSelection *selection,
default:
mimeview_change_view_type(mimeview, MIMEVIEW_TEXT);
#if USE_GPGME
- if (g_ascii_strcasecmp(partinfo->content_type,
- "application/pgp-signature") == 0)
+ if (rfc2015_is_signature_part(partinfo))
mimeview_show_signature_part(mimeview, partinfo);
else
#endif
@@ -1185,8 +1184,7 @@ static void mimeview_update_signature_info(MimeView *mimeview)
partinfo = mimeview_get_selected_part(mimeview);
if (!partinfo) return;
- if (g_ascii_strcasecmp(partinfo->content_type,
- "application/pgp-signature") == 0) {
+ if (rfc2015_is_signature_part(partinfo)) {
mimeview_change_view_type(mimeview, MIMEVIEW_TEXT);
mimeview_show_signature_part(mimeview, partinfo);
}